Searched refs:future (Results 1 – 9 of 9) sorted by relevance
35 static void future_free(future_t *future);72 void future_ready(future_t *future, void *value) { in future_ready() argument73 assert(future != NULL); in future_ready()74 assert(future->ready_can_be_called); in future_ready()76 future->ready_can_be_called = false; in future_ready()77 future->result = value; in future_ready()78 semaphore_post(future->semaphore); in future_ready()81 void *future_await(future_t *future) { in future_await() argument82 assert(future != NULL); in future_await()85 if (future->semaphore) in future_await()[all …]
39 future_t *future = future_new(); in TEST_F() local40 ASSERT_TRUE(future != NULL); in TEST_F()43 thread_post(worker_thread, post_to_future, future); in TEST_F()45 EXPECT_EQ(pass_back_data0, future_await(future)); in TEST_F()51 future_t *future = future_new_immediate((void *)pass_back_data1); in TEST_F() local52 ASSERT_TRUE(future != NULL); in TEST_F()53 EXPECT_EQ(pass_back_data1, future_await(future)); in TEST_F()
144 future_t *future = function(); in call_lifecycle_function() local147 if (!future) in call_lifecycle_function()151 return future_await(future); in call_lifecycle_function()
37 void future_ready(future_t *future, void *value);
40 ./src/future.c \
84 # [31-16] Reserved for future use89 # [31-13] Reserved for future use
373 future_t *future = future_new(); in transmit_command_futured() local377 wait_entry->complete_future = future; in transmit_command_futured()385 return future; in transmit_command_futured()
107 lowercase letter, to prevent incompatibilities with future specs.
238 --- future expansion ---------------------------------------------------252 succeeds. A future version may want to do some level of windowing where