| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH pthread_condattr_init 3 2025-05-17 "Linux man-pages 6.18" |
| 6 |
. |
| 7 |
. |
| 8 |
.SH NAME |
| 9 |
pthread_condattr_init, |
| 10 |
pthread_condattr_destroy |
| 11 |
\- |
| 12 |
condition creation attributes |
| 13 |
. |
| 14 |
. |
| 15 |
.SH SYNOPSIS |
| 16 |
.B #include <pthread.h> |
| 17 |
.P |
| 18 |
.BI "int pthread_condattr_init(pthread_condattr_t *" attr ");" |
| 19 |
.BI "int pthread_condattr_destroy(pthread_condattr_t *" attr ");" |
| 20 |
. |
| 21 |
. |
| 22 |
.SH DESCRIPTION |
| 23 |
Condition attributes can be specified at condition creation time, |
| 24 |
by passing a condition attribute object |
| 25 |
as second argument to |
| 26 |
.BR pthread_cond_init (3). |
| 27 |
Passing NULL 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 |
.BR pthread_condattr_init () |
| 36 |
initializes the condition attribute object |
| 37 |
.I attr |
| 38 |
and fills it with default values for the attributes. |
| 39 |
.BR pthread_condattr_destroy () |
| 40 |
destroys a condition attribute object, |
| 41 |
which must not be reused until it is reinitialized. |
| 42 |
Both functions do nothing in the LinuxThreads implementation. |
| 43 |
. |
| 44 |
. |
| 45 |
.SH "RETURN VALUE" |
| 46 |
.BR pthread_condattr_init () |
| 47 |
and |
| 48 |
.BR pthread_condattr_destroy () |
| 49 |
always return 0. |
| 50 |
. |
| 51 |
. |
| 52 |
.SH "SEE ALSO" |
| 53 |
.BR pthread_cond_init (3). |