Unix and Linux Discussions Tagged with condition |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
18,941 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
9,128 |
Shell Programming and Scripting |
|
|
|
3 |
5,603 |
Shell Programming and Scripting |
|
|
|
1 |
3,442 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,565 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
1,970 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,559 |
Shell Programming and Scripting |
|
|
|
3 |
1,779 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,567 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
1,581 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,814 |
Shell Programming and Scripting |
|
|
|
9 |
3,311 |
Shell Programming and Scripting |
|
|
|
4 |
13,788 |
Shell Programming and Scripting |
|
|
|
4 |
4,031 |
Linux |
|
|
|
4 |
1,658 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,378 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
11,829 |
Shell Programming and Scripting |
|
|
|
4 |
8,122 |
Shell Programming and Scripting |
|
|
|
2 |
17,737 |
Shell Programming and Scripting |
|
|
|
11 |
4,679 |
Shell Programming and Scripting |
|
|
|
2 |
5,951 |
Linux |
|
|
|
2 |
1,833 |
Shell Programming and Scripting |
|
|
|
18 |
10,964 |
Shell Programming and Scripting |
|
|
|
0 |
1,938 |
Complex Event Processing RSS News |
|
|
|
4 |
1,871 |
Shell Programming and Scripting |
|
|
|
2 |
4,433 |
Shell Programming and Scripting |
|
|
|
24 |
13,504 |
Shell Programming and Scripting |
|
|
|
1 |
1,829 |
Shell Programming and Scripting |
|
|
|
1 |
1,699 |
Solaris |
|
|
|
2 |
4,551 |
UNIX and Linux Applications |
|
|
|
9 |
117,674 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,431 |
Shell Programming and Scripting |
|
|
|
7 |
10,270 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
5,622 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,482 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
61,400 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,706 |
UNIX for Dummies Questions & Answers |
pthread_condattr_init(3T) pthread_condattr_init(3T)
NAME
pthread_condattr_init(), pthread_condattr_destroy() - initialize or destroy a condition variable attributes object.
SYNOPSIS
PARAMETERS
attr Pointer to the condition variable attributes object to be initialized or destroyed.
DESCRIPTION
initializes the condition variable attributes object attr with the default values for all attributes. The attributes object describes a
condition variable in detail and is passed to the condition variable initialization function.
When a condition variable attributes object is used to initialize a condition variable, the values of the individual attributes determine
the characteristics of the new condition variable. Attributes objects act like additional parameters to object initialization. A single
attributes object can be used in multiple calls to the function
When a condition variable is initialized with an attributes object, the attributes are, in effect, copied into the condition variable.
Consequently, any change to the attributes object will not affect any previously initialized condition variables. Once all condition vari-
ables needing a specific attributes object have been initialized, the attributes object is no longer needed.
The condition variable attributes and their default values are:
The default value is
If an initialized condition variable attributes object is reinitialized, undefined behavior results.
destroys the condition variable attributes object attr. The destroyed condition variable attributes object ceases to exist and its
resources are reclaimed. Using attr after it has been destroyed results in undefined behavior. A destroyed condition variable attributes
object can be reinitialized using the function
Condition variables that have been already initialized using this attributes object are not affected by the destruction of the condition
variable attributes object.
RETURN VALUE
Upon successful completion, and return zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the corresponding error number:
[ENOMEM] There is insufficient memory available in which to initialize the condition variable attributes object.
[EINVAL] attr is not a valid condition variable attributes object.
For each of the following conditions, if the condition is detected, the function returns the corresponding error number:
[EINVAL] attr is not a valid condition variable attributes object.
AUTHOR
and were derived from the IEEE POSIX P1003.1c standard.
SEE ALSO
pthread_create(3T), pthread_condattr_getpshared(3T), pthread_cond_init(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_condattr_init(3T)