Lely core libraries  2.3.4
stop_token Struct Reference

A stop token. More...

Collaboration diagram for stop_token:

Data Fields

atomic_size_t refcnt
 The number of references to this token or its associated source. More...
 
cnd_t cond
 The condition variable signaled once func completes.
 
struct sllist queue
 The queue of callback functions registered with this token.
 
struct stop_funcfunc
 A pointer to the currently running callback.
 

Detailed Description

A stop token.

Definition at line 40 of file stop.c.

Field Documentation

◆ refcnt

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.

Definition at line 53 of file stop.c.


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