The
pthread_barrierattr_init()
function will initialize
attr
with default attributes.
The
pthread_barrierattr_destroy()
function will destroy
attr
and release any resources that may have been allocated on its behalf.
The
pthread_barrierattr_getpshared()
function will put the value of the process-shared attribute from
attr
into the memory area pointed to by
pshared.
The
pthread_barrierattr_setpshared()
function will set the process-shared attribute of
attr
to the value specified in
pshared.
The argument
pshared
may have one of the following values:
PTHREAD_PROCESS_PRIVATE
|
|
The barrier object it is attached to may only be accessed by
threads in the same process as the one that created the object.
|
PTHREAD_PROCESS_SHARED
|
The barrier object it is attached to may be accessed by
threads in processes other than the one that created the object.
|