Interface for creating futures.
More...
#include "xrt/xrt_defines.h"
#include "xrt/xrt_future_value.h"
#include <assert.h>
Go to the source code of this file.
|
| struct | xrt_future_result |
| | The (future) result of an asynchronous operation. More...
|
| |
| interface | xrt_future |
| | A future is a concurrency primitive that provides a mechanism to access results of asynchronous operations. More...
|
| |
|
| enum | xrt_future_state { XRT_FUTURE_STATE_PENDING
, XRT_FUTURE_STATE_READY
, XRT_FUTURE_STATE_CANCELLED
} |
| | The (future) status of an asynchronous operation. More...
|
| |
◆ XRT_FUTURE_RESULT
| #define XRT_FUTURE_RESULT |
( |
|
TYPED_VALUE, |
|
|
|
ERR_CODE |
|
) |
| |
Value:
{ \
.value = xrt_future_value_make(TYPED_VALUE), .result = ERR_CODE, \
}
The (future) result of an asynchronous operation.
Definition: xrt_future.h:38
◆ xrt_future_state_t
◆ xrt_future_state