|
Loom C API
Public Loom compiler C API
|
Stateless callbacks for one task representation. More...
#include <task.h>
Data Fields | |
| void(* | execute )(loomc_task_t *task, loomc_host_size_t worker_ordinal) |
| Executes task exactly once without destroying its storage. | |
| void(* | destroy )(loomc_task_t *task) |
| Destroys task storage after execution or rejected-submission cleanup. | |
Stateless callbacks for one task representation.
| void(* loomc_task_vtable_t::execute) (loomc_task_t *task, loomc_host_size_t worker_ordinal) |
Executes task exactly once without destroying its storage.
worker_ordinal identifies the sink execution lane running this task. Ordinals are dense and mutually exclusive: two task callbacks never run concurrently with the same ordinal. Concrete tasks may use the ordinal to index caller-owned worker-local state.
The callback terminalizes every outcome owned by the task before returning.