Data Structures | Defines

I_Action.h File Reference

Generic interface which enables any event or async activity to be cancelled. More...

#include "libts.h"
#include "I_Thread.h"
#include "I_Continuation.h"
Include dependency graph for I_Action.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Action
 Represents an operation initiated on a Processor. More...

Defines

#define ACTION_RESULT_NONE   MAKE_ACTION_RESULT(0)
#define ACTION_RESULT_DONE   MAKE_ACTION_RESULT(1)
#define ACTION_IO_ERROR   MAKE_ACTION_RESULT(2)
#define ACTION_RESULT_INLINE   MAKE_ACTION_RESULT(3)
#define MAKE_ACTION_RESULT(_x)   (Action*)(((uintptr_t)((_x<<1)+1)))
#define ACTION_RESULT(_x)   (int)((((uintptr_t)_x)&1)!=0?(((uintptr_t)>>1):(uintptr_t)0))
#define IS_ACTION_RESULT(_x)   ((((uintptr_t)_x)&1) != 0)

Detailed Description

Generic interface which enables any event or async activity to be cancelled.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file I_Action.h.


Define Documentation

#define ACTION_IO_ERROR   MAKE_ACTION_RESULT(2)
#define ACTION_RESULT (   _x  )     (int)((((uintptr_t)_x)&1)!=0?(((uintptr_t)>>1):(uintptr_t)0))

Definition at line 208 of file I_Action.h.

#define ACTION_RESULT_DONE   MAKE_ACTION_RESULT(1)
#define ACTION_RESULT_INLINE   MAKE_ACTION_RESULT(3)

Definition at line 200 of file I_Action.h.

#define ACTION_RESULT_NONE   MAKE_ACTION_RESULT(0)

Definition at line 197 of file I_Action.h.

#define IS_ACTION_RESULT (   _x  )     ((((uintptr_t)_x)&1) != 0)

Definition at line 211 of file I_Action.h.

#define MAKE_ACTION_RESULT (   _x  )     (Action*)(((uintptr_t)((_x<<1)+1)))

Definition at line 206 of file I_Action.h.