This group is for Barrier.
int ABT_barrier_create |
( |
uint32_t |
num_waiters, |
|
|
ABT_barrier * |
newbarrier |
|
) |
| |
Create a new barrier.
ABT_barrier_create()
creates a new barrier and returns its handle through newbarrier
. If an error occurs in this routine, a non-zero error code will be returned and newbarrier
will be set to ABT_BARRIER_NULL
.
- Parameters
-
[in] | num_waiters | number of waiters |
[out] | newbarrier | handle to a new barrier |
- Returns
- Error code
- Return values
-
Definition at line 26 of file barrier.c.
Free the barrier.
ABT_barrier_free()
deallocates the memory used for the barrier object associated with the handle barrier
. If it is successfully processed, barrier
is set to ABT_BARRIER_NULL
.
- Parameters
-
[in,out] | barrier | handle to the barrier |
- Returns
- Error code
- Return values
-
Definition at line 104 of file barrier.c.
int ABT_barrier_get_num_waiters |
( |
ABT_barrier |
barrier, |
|
|
uint32_t * |
num_waiters |
|
) |
| |
int ABT_barrier_reinit |
( |
ABT_barrier |
barrier, |
|
|
uint32_t |
num_waiters |
|
) |
| |
Reinitialize the barrier.
ABT_barrier_reinit()
reinitializes the barrier barrier
with a new number of waiters num_waiters
. num_waiters
can be the same as or different from the one passed to ABT_barrier_create()
.
- Parameters
-
[in] | barrier | handle to the barrier |
[in] | num_waiters | number of waiters |
- Returns
- Error code
- Return values
-
Definition at line 60 of file barrier.c.
Wait on the barrier.
The ULT calling ABT_barrier_wait()
waits on the barrier until all the ULTs reach the barrier.
- Parameters
-
[in] | barrier | handle to the barrier |
- Returns
- Error code
- Return values
-
Definition at line 144 of file barrier.c.