The struct that is used to store the race result.
More...
#include <eina_promise.h>
|
|
Eina_Value | value |
| | The race result.
|
|
unsigned int | index |
| | The future index that won the race.
|
The struct that is used to store the race result.
When using eina_promise_race_array() and friends, the future result will be reported as a struct. The values can be obtained using eina_value_struct_get() or one could access the struct directly such as this example:
{
eina_value_get(v, &st);
printf("Winning future index: %u\n", rr->index);
return v;
}
struct _Eina_Future_Race_Result Eina_Future_Race_Result
Convenience wrapper over _Eina_Future_Race_Result.
Definition eina_promise.h:38
#define EINA_UNUSED
Used to indicate that a function parameter is purposely unused.
Definition eina_types.h:339
struct _Eina_Value Eina_Value
Store generic values.
Definition eina_value.h:307
struct _Eina_Value_Struct Eina_Value_Struct
Value type for EINA_VALUE_TYPE_STRUCT.
Definition eina_value.h:3051
void * memory
The managed structure memory.
Definition eina_value.h:3182
- See also
- eina_promise_race_array()
-
eina_future_race_array()
-
eina_promise_race()
-
eina_future_race()
-
EINA_PROMISE_RACE_STRUCT_DESC