API Reference Manual  1.45.0
api/spec/thrmask.h File Reference

ODP thread masks. More...

#include <odp/visibility_begin.h>
#include <odp/api/std_types.h>
#include <odp/visibility_end.h>
Include dependency graph for api/spec/thrmask.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void odp_thrmask_from_str (odp_thrmask_t *mask, const char *str)
 Add thread mask bits from a string. More...
 
int32_t odp_thrmask_to_str (const odp_thrmask_t *mask, char *str, int32_t size)
 Format a string from thread mask. More...
 
void odp_thrmask_zero (odp_thrmask_t *mask)
 Clear entire thread mask. More...
 
void odp_thrmask_set (odp_thrmask_t *mask, int thr)
 Add thread to mask. More...
 
void odp_thrmask_setall (odp_thrmask_t *mask)
 Set all threads in mask. More...
 
void odp_thrmask_clr (odp_thrmask_t *mask, int thr)
 Remove thread from mask. More...
 
int odp_thrmask_isset (const odp_thrmask_t *mask, int thr)
 Test if thread is a member of mask. More...
 
int odp_thrmask_count (const odp_thrmask_t *mask)
 Count number of threads set in mask. More...
 
void odp_thrmask_and (odp_thrmask_t *dest, const odp_thrmask_t *src1, const odp_thrmask_t *src2)
 Member-wise AND over two thread masks. More...
 
void odp_thrmask_or (odp_thrmask_t *dest, const odp_thrmask_t *src1, const odp_thrmask_t *src2)
 Member-wise OR over two thread masks. More...
 
void odp_thrmask_xor (odp_thrmask_t *dest, const odp_thrmask_t *src1, const odp_thrmask_t *src2)
 Member-wise XOR over two thread masks. More...
 
int odp_thrmask_equal (const odp_thrmask_t *mask1, const odp_thrmask_t *mask2)
 Test if two thread masks contain the same threads. More...
 
void odp_thrmask_copy (odp_thrmask_t *dest, const odp_thrmask_t *src)
 Copy a thread mask. More...
 
int odp_thrmask_first (const odp_thrmask_t *mask)
 Find first set thread in mask. More...
 
int odp_thrmask_last (const odp_thrmask_t *mask)
 Find last set thread in mask. More...
 
int odp_thrmask_next (const odp_thrmask_t *mask, int thr)
 Find next set thread in mask. More...
 
int odp_thrmask_worker (odp_thrmask_t *mask)
 Worker thread mask. More...
 
int odp_thrmask_control (odp_thrmask_t *mask)
 Control thread mask. More...
 

Detailed Description

ODP thread masks.

Definition in file api/spec/thrmask.h.