chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / linuxthreads / man / pthread_condattr_init.man
1 .TH PTHREAD_CONDATTR 3 LinuxThreads
2
3 .XREF pthread_condattr_destroy
4
5 .SH NAME
6 pthread_condattr_init, pthread_condattr_destroy \- condition creation attributes
7
8 .SH SYNOPSIS
9 #include <pthread.h>
10
11 int pthread_condattr_init(pthread_condattr_t *attr);
12
13 int pthread_condattr_destroy(pthread_condattr_t *attr);
14
15 .SH DESCRIPTION
16
17 Condition attributes can be specified at condition creation time, by passing a
18 condition attribute object as second argument to !pthread_cond_init!(3).
19 Passing !NULL! is equivalent to passing a condition attribute object with
20 all attributes set to their default values.
21
22 The LinuxThreads implementation supports no attributes for
23 conditions. The functions on condition attributes are included only
24 for compliance with the POSIX standard.
25
26 !pthread_condattr_init! initializes the condition attribute object
27 |attr| and fills it with default values for the attributes.
28 !pthread_condattr_destroy! destroys a condition attribute object,
29 which must not be reused until it is reinitialized. Both functions do
30 nothing in the LinuxThreads implementation.
31
32 .SH "RETURN VALUE"
33 !pthread_condattr_init! and !pthread_condattr_destroy! always return 0.
34
35 .SH AUTHOR
36 Xavier Leroy <Xavier.Leroy@inria.fr>
37
38 .SH "SEE ALSO"
39 !pthread_cond_init!(3).