FreeRTOS:
POSIX
|
Return to main page ↑ |
Implementation of barrier functions in pthread.h. More...
#include <stddef.h>
#include "FreeRTOS_POSIX.h"
#include "FreeRTOS_POSIX/errno.h"
#include "FreeRTOS_POSIX/pthread.h"
#include "atomic.h"
Macros | |
#define | posixPTHREAD_BARRIER_MAX_COUNT ( 24 ) |
Functions | |
int | pthread_barrier_destroy (pthread_barrier_t *barrier) |
Destroy a barrier object. More... | |
int | pthread_barrier_init (pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned count) |
Initialize a barrier object. More... | |
int | pthread_barrier_wait (pthread_barrier_t *barrier) |
Synchronize at a barrier. More... | |
Implementation of barrier functions in pthread.h.
int pthread_barrier_destroy | ( | pthread_barrier_t * | barrier | ) |
Destroy a barrier object.
0 | - Upon successful completion. |
int pthread_barrier_init | ( | pthread_barrier_t * | barrier, |
const pthread_barrierattr_t * | attr, | ||
unsigned | count | ||
) |
Initialize a barrier object.
0 | - Upon successful completion. |
EINVAL | - The value specified by count is equal to zero. |
ENOMEM | - count cannot fit into FreeRTOS event group type OR insufficient memory exists to initialize the barrier. |
int pthread_barrier_wait | ( | pthread_barrier_t * | barrier | ) |
Synchronize at a barrier.
PTHREAD_BARRIER_SERIAL_THREAD | - Upon successful completion, the first thread. |
0 | - Upon successful completion, other thread(s). |