Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
reduct_future_t Struct Reference

Future structure. More...

#include <future.h>

Collaboration diagram for reduct_future_t:

Public Member Functions

 _Atomic (bool) done
 Whether the future is finished.
 

Data Fields

reduct_error_terror
 Error structure, will be NULL if no error occured.
 
union { 
 
   reduct_handle_t   callable 
 The callable to execute. More...
 
   reduct_handle_t   result 
 The result of the execution. More...
 
};  
 
reduct_handle_t smallArgv [REDUCT_FUTURE_SMALL_MAX]
 
reduct_handle_targv
 The arguments for the callable.
 
uint32_t argc
 The number of arguments.
 
reduct_task_id_t taskId
 The task ID in the task system.
 

Detailed Description

Future structure.

Definition at line 27 of file future.h.

Member Function Documentation

◆ _Atomic()

reduct_future_t::_Atomic ( bool  )

Whether the future is finished.

Field Documentation

◆ error

reduct_error_t* reduct_future_t::error

Error structure, will be NULL if no error occured.

Definition at line 29 of file future.h.

◆ callable

reduct_handle_t reduct_future_t::callable

The callable to execute.

Definition at line 31 of file future.h.

◆ result

reduct_handle_t reduct_future_t::result

The result of the execution.

Definition at line 32 of file future.h.

◆ [union]

union { ... } reduct_future_t

◆ smallArgv

reduct_handle_t reduct_future_t::smallArgv[REDUCT_FUTURE_SMALL_MAX]

Definition at line 34 of file future.h.

◆ argv

reduct_handle_t* reduct_future_t::argv

The arguments for the callable.

Definition at line 35 of file future.h.

◆ argc

uint32_t reduct_future_t::argc

The number of arguments.

Definition at line 36 of file future.h.

◆ taskId

reduct_task_id_t reduct_future_t::taskId

The task ID in the task system.

Definition at line 38 of file future.h.


The documentation for this struct was generated from the following file: