Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_WORKER_REQUEST Struct Reference

#include <threads.h>

Data Fields

uint32_t signature
 Signature for entry validation.
uint32_t interval
 Interval for worker (Milliseconds).
uint32_t flags
 Worker Flags (eg WORKER_FLAG_RESCHEDULE).
SPIN_HANDLE lock
 Worker Lock (or INVALID_HANDLE_VALUE if Interval is 0 and Flags is not WORKER_FLAG_RESCHEDULE).
TIMER_HANDLE timer
 Worker Timer (or INVALID_HANDLE_VALUE if Interval is 0).
worker_task_proc task
 Task to call by worker.
void * data
 Data to pass to task.
worker_cb callback
 Callback when task is completed.

Field Documentation

◆ signature

uint32_t signature

Signature for entry validation.

◆ interval

uint32_t interval

Interval for worker (Milliseconds).

◆ flags

uint32_t flags

Worker Flags (eg WORKER_FLAG_RESCHEDULE).

◆ lock

Worker Lock (or INVALID_HANDLE_VALUE if Interval is 0 and Flags is not WORKER_FLAG_RESCHEDULE).

◆ timer

TIMER_HANDLE timer

Worker Timer (or INVALID_HANDLE_VALUE if Interval is 0).

◆ task

Task to call by worker.

◆ data

void* data

Data to pass to task.

◆ callback

worker_cb callback

Callback when task is completed.


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