Unix and Linux Discussions Tagged with condition |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
13,892 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
8,545 |
Shell Programming and Scripting |
|
|
|
3 |
5,130 |
Shell Programming and Scripting |
|
|
|
1 |
2,754 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
959 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
1,231 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,331 |
Shell Programming and Scripting |
|
|
|
3 |
1,188 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,088 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
892 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,485 |
Shell Programming and Scripting |
|
|
|
9 |
2,787 |
Shell Programming and Scripting |
|
|
|
4 |
13,087 |
Shell Programming and Scripting |
|
|
|
4 |
3,470 |
Linux |
|
|
|
4 |
1,520 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,743 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
11,422 |
Shell Programming and Scripting |
|
|
|
4 |
7,971 |
Shell Programming and Scripting |
|
|
|
2 |
17,105 |
Shell Programming and Scripting |
|
|
|
11 |
4,312 |
Shell Programming and Scripting |
|
|
|
2 |
5,530 |
Linux |
|
|
|
2 |
1,717 |
Shell Programming and Scripting |
|
|
|
18 |
10,573 |
Shell Programming and Scripting |
|
|
|
0 |
1,826 |
Complex Event Processing RSS News |
|
|
|
4 |
1,697 |
Shell Programming and Scripting |
|
|
|
2 |
4,112 |
Shell Programming and Scripting |
|
|
|
24 |
13,079 |
Shell Programming and Scripting |
|
|
|
1 |
1,752 |
Shell Programming and Scripting |
|
|
|
1 |
1,640 |
Solaris |
|
|
|
2 |
3,695 |
UNIX and Linux Applications |
|
|
|
9 |
117,086 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,285 |
Shell Programming and Scripting |
|
|
|
7 |
9,559 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
5,127 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,043 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
60,803 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,297 |
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)