Monado OpenXR Runtime
xrt_future.h File Reference

Interface for creating futures. More...

#include "xrt/xrt_defines.h"
#include "xrt/xrt_future_value.h"
#include <assert.h>
Include dependency graph for xrt_future.h:

Go to the source code of this file.

Data Structures

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...
 

Macros

#define XRT_FUTURE_RESULT(TYPED_VALUE, ERR_CODE)
 

Typedefs

typedef enum xrt_future_state xrt_future_state_t
 The (future) status of an asynchronous operation. More...
 

Enumerations

enum  xrt_future_state { XRT_FUTURE_STATE_PENDING , XRT_FUTURE_STATE_READY , XRT_FUTURE_STATE_CANCELLED }
 The (future) status of an asynchronous operation. More...
 

Detailed Description

Interface for creating futures.

Author
Korcan Hussein korca.nosp@m.n.hu.nosp@m.ssein.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ XRT_FUTURE_RESULT

#define XRT_FUTURE_RESULT (   TYPED_VALUE,
  ERR_CODE 
)
Value:
XRT_C11_COMPOUND(struct xrt_future_result) \
{ \
.value = xrt_future_value_make(TYPED_VALUE), .result = ERR_CODE, \
}
The (future) result of an asynchronous operation.
Definition: xrt_future.h:38

Typedef Documentation

◆ xrt_future_state_t

The (future) status of an asynchronous operation.

See also
xrt_future::get_state

Enumeration Type Documentation

◆ xrt_future_state

The (future) status of an asynchronous operation.

See also
xrt_future::get_state