picofuse

Macros | Typedefs
waitgroup.h File Reference

Defines wait-group primitives for coordinating worker completion. More...

#include <stdbool.h>
Include dependency graph for waitgroup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYS_WAITGROUP_CAPACITY   32
 Maximum number of wait groups available in static-pool implementations.
 

Typedefs

typedef struct sys_waitgroup_t sys_waitgroup_t
 Wait group.
 

Functions

Lifecycle
sys_waitgroup_tsys_waitgroup_init (void)
 Initialize a new wait group. More...
 
void sys_waitgroup_deinit (sys_waitgroup_t *wg)
 Deinitialize a wait group. More...
 
Methods
bool sys_waitgroup_add (sys_waitgroup_t *wg, int delta)
 Add to the wait group counter. More...
 
bool sys_waitgroup_done (sys_waitgroup_t *wg)
 Decrement the wait group counter. More...
 
void sys_waitgroup_wait (sys_waitgroup_t *wg)
 Wait for a wait group to complete. More...
 

Detailed Description

Defines wait-group primitives for coordinating worker completion.

Definition in file waitgroup.h.