|
Lely core libraries 2.3.5
|
A stop token. More...

Data Fields | |
| atomic_size_t | refcnt |
| The number of references to this token or its associated source. | |
| cnd_t | cond |
| The condition variable signaled once func completes. | |
| struct sllist | queue |
| The queue of callback functions registered with this token. | |
| struct stop_func * | func |
| A pointer to the currently running callback. | |
| atomic_size_t stop_token::refcnt |
The number of references to this token or its associated source.
Once the reference count reaches zero, the stop_source struct containing this token is reclaimed.