Searched defs:future_t (Results 1 - 2 of 2) sorted by relevance

/system/bt/osi/include/
H A Dfuture.h21 typedef struct future_t future_t; typedef in typeref:struct:future_t
26 // Constructs a new future_t object. Returns NULL on failure.
27 future_t *future_new(void);
29 // Constructs a new future_t object with an immediate |value|. No waiting will
32 future_t *future_new_immediate(void *value);
37 void future_ready(future_t *future, void *value);
41 void *future_await(future_t *async_result);
/system/bt/osi/src/
H A Dfuture.c29 struct future_t { struct
35 static void future_free(future_t *future);
37 future_t *future_new(void) {
38 future_t *ret = osi_calloc(sizeof(future_t));
57 future_t *future_new_immediate(void *value) {
58 future_t *ret = osi_calloc(sizeof(future_t));
72 void future_ready(future_t *future, void *value) {
81 void *future_await(future_t *futur
[all...]

Completed in 17 milliseconds