| 1 |
.\" Copyright, Xavier Leroy <[email protected]> |
| 2 |
.\" Copyright 2023, Alejandro Colomar <[email protected]> |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 5 |
.\" |
| 6 |
.TH pthread_condattr_init 3 2024-05-02 "Linux man-pages 6.9.1" |
| 7 |
. |
| 8 |
. |
| 9 |
.SH NAME |
| 10 |
pthread_condattr_init, |
| 11 |
pthread_condattr_destroy |
| 12 |
\- |
| 13 |
condition creation attributes |
| 14 |
. |
| 15 |
. |
| 16 |
.SH SYNOPSIS |
| 17 |
.B #include <pthread.h> |
| 18 |
.P |
| 19 |
.BI "int pthread_condattr_init(pthread_condattr_t *" attr ");" |
| 20 |
.BI "int pthread_condattr_destroy(pthread_condattr_t *" attr ");" |
| 21 |
. |
| 22 |
. |
| 23 |
.SH DESCRIPTION |
| 24 |
Condition attributes can be specified at condition creation time, |
| 25 |
by passing a condition attribute object |
| 26 |
as second argument to \fBpthread_cond_init\fP(3). |
| 27 |
Passing \fBNULL\fP is equivalent to |
| 28 |
passing a condition attribute object |
| 29 |
with all attributes set to their default values. |
| 30 |
.P |
| 31 |
The LinuxThreads implementation supports no attributes for conditions. |
| 32 |
The functions on condition attributes are |
| 33 |
included only for compliance with the POSIX standard. |
| 34 |
.P |
| 35 |
\fBpthread_condattr_init\fP |
| 36 |
initializes the condition attribute object \fIattr\fP |
| 37 |
and fills it with default values for the attributes. |
| 38 |
\fBpthread_condattr_destroy\fP destroys a condition attribute object, |
| 39 |
which must not be reused until it is reinitialized. |
| 40 |
Both functions do nothing in the LinuxThreads implementation. |
| 41 |
. |
| 42 |
. |
| 43 |
.SH "RETURN VALUE" |
| 44 |
\fBpthread_condattr_init\fP and \fBpthread_condattr_destroy\fP always return 0. |
| 45 |
. |
| 46 |
. |
| 47 |
.SH "SEE ALSO" |
| 48 |
\fBpthread_cond_init\fP(3). |