RTEMS CPU Kit with SuperCore
Functions
pbarrierdestroy.c File Reference

Destroy a Barrier Object. More...

#include <pthread.h>
#include <errno.h>
#include <rtems/system.h>
#include <rtems/posix/barrierimpl.h>
Include dependency graph for pbarrierdestroy.c:

Functions

int pthread_barrier_destroy (pthread_barrier_t *barrier)
 This directive allows a thread to delete a barrier specified by the barrier id. More...
 

Detailed Description

Destroy a Barrier Object.

Function Documentation

◆ pthread_barrier_destroy()

int pthread_barrier_destroy ( pthread_barrier_t *  barrier)

This directive allows a thread to delete a barrier specified by the barrier id.

The barrier is freed back to the inactive barrier chain.

Parameters
[in]barrieris the barrier id
Returns
This method returns 0 if there was not an error. Otherwise, a status code is returned indicating the source of the error.

References _Objects_Allocator_lock(), and _POSIX_Barrier_Get().