Standard C Library Functions pthreadbarrierattrdestroy(3C)
NAME
pthreadbarrierattrdestroy, pthreadbarrierattrinit - des-
troy and initialize barrier attributes object
SYNOPSIS
cc -mt [ flag... ] file... [ library... ]
#include
int pthreadbarrierattrdestroy(pthreadbarrierattrt *attr);
int pthreadbarrierattrinit(pthreadbarrierattrt *attr);
DESCRIPTION
The pthreadbarrierattrdestroy() function destroys a bar-
rier attributes object. A destroyed attr attributes object
can be reinitialized using pthreadbarrierattrinit(). The
results of otherwise referencing the object after it has
been destroyed are undefined. An implementation can cause
pthreadbarrierattrdestroy() to set the object referenced
by attr to an invalid value.
The pthreadbarrierattrinit() function initializes a bar-
rier attributes object attr with the default value for all
of the attributes defined by the implementation.
Results are undefined if pthreadbarrierattrinit() is
called specifying an already initialized attr attributes
object.
After a barrier attributes object has been used to initial-
ize one or more barriers, any function affecting the attri-
butes object (including destruction) does not affect any
previously initialized barrier.
RETURN VALUES
Upon successful completion, the
pthreadbarrierattrdestroy() and pthreadbarrierattrinit()
functions returns 0. Otherwise, an error number is returned
to indicate the error.
ERORS
The pthreadbarrierattrinit() function will fail if:
ENOMEM Insufficient memory exists to initialize the bar-
rier attributes object.
SunOS 5.11 Last change: 30 Jan 2004 1
Standard C Library Functions pthreadbarrierattrdestroy(3C)
The pthreadbarrierattrdestroy() function may fail if:
EINVAL The value specified by attr is invalid.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Standard
MT-Level MT-Safe
SEE ALSO
pthreadbarrierattrgetpshared(3C), attributes(5), stan-
dards(5)
SunOS 5.11 Last change: 30 Jan 2004 2
|