Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_task_vtable_t Struct Reference

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.

Detailed Description

Stateless callbacks for one task representation.

Field Documentation

◆ execute

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.


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