thread_flags_group.h File Reference

Thread Flags Group API. More...

Detailed Description

Thread Flags Group API.

Author
Mihai Renea mihai.nosp@m..ren.nosp@m.ea@ml.nosp@m.-pa..nosp@m.com

Definition in file thread_flags_group.h.

#include <limits.h>
#include "atomic_utils.h"
#include "thread.h"
#include "thread_flags.h"
+ Include dependency graph for thread_flags_group.h:

Go to the source code of this file.

Data Structures

struct  thread_flags_group_t
 Thread flags group. More...
 

Macros

#define UINT_WIDTH   (sizeof(unsigned) * 8)
 Number of bits in unsigned int.
 
#define THREAD_FLAGS_GROUP_INIT   { .members = { 0 } }
 Initialize a thread flags group.
 

Functions

static void thread_flags_group_join (thread_flags_group_t *group)
 Join a thread flags group. More...
 
static void thread_flags_group_leave (thread_flags_group_t *group)
 Leave a thread flags group. More...
 
void thread_flags_group_set (thread_flags_group_t *group, thread_flags_t mask)
 Set thread flags for all threads in a group. More...