Lely core libraries  2.3.4
fiber_thrd Struct Reference

A thread-local struct containing the fiber associated with the thread and a pointer to the fiber currently running in the thread. More...

Collaboration diagram for fiber_thrd:

Data Fields

size_t refcnt
 The reference counter tracking the number of calls to fiber_thrd_init() minus those to fiber_thrd_fini().
 
fiber_t main
 The fiber representing this thread. More...
 
fiber_tcurr
 A pointer to the fiber currently running on this thread.
 

Detailed Description

A thread-local struct containing the fiber associated with the thread and a pointer to the fiber currently running in the thread.

Definition at line 180 of file fiber.c.

Field Documentation

◆ main

fiber_t fiber_thrd::main

The fiber representing this thread.

Pointers to this fiber are converted to and from NULL to prevent the address from being exposed to the user. If it was, the user could try to resume this fiber from another thread, which is impossible.

Definition at line 193 of file fiber.c.


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