CEEOPDG
C library interface: pthread_condattr_getkind_np()
CEEOPDG returns an integer value indicating attributes specified
by a condition variable attributes object. Valid attributes are:
- DEFAULT
- N/A
- NODEBUG
- Indicates that condition variable services should not report state changes for a condition variable which was initialized with this attribute.
- PRIVATE
- Indicates that condition variable resides in local memory. This is the default.
- SHARED
- Indicates that condition variable resides in shared memory.
Syntax
void CEEOPDG (condattr, kind,
[fc])
CEE_TOKEN *condattr;
INT4 *kind;
FEED_BACK *fc;
- CEEOPDG
- Call this CWI interface as follows:
L R15,CEECAALEOV-CEECAA(,R12) CAA address is in R12 L R15,0252(,R15) BALR R14,R15
- condattr (input/output)
- The location that contains the token of an initialized condition variable attributes object.
- kind (output)
- The location of a value specifying a condition variable attribute.
Values returned by CEEOPDG are:
- 0
- DEFAULT
- 2
- NODEBUG+PRIVATE
- 8
- DEBUG+SHARED
- 10
- NODEBUG+SHARED
In addition to the other attributes, if the _OPEN_SYS_MUTEX_EXT feature switch is set, the PRIVATE and SHARED attributes set by pthread_condattr_setpshared is returned.
- fc (output/optional)
- The feedback code returned by the service. It indicates the degree of success in interrogating the condition variable attributes object.
The following message identifiers and associated severities can be returned by the service in the feedback code fc.
Condition | ||
---|---|---|
CEE000 | Severity | 0 |
Msg_No | 0000 | |
Message | The service completed successfully. | |
CEE4S9 | Severity | 3 |
Msg_No | 5001 | |
Message | This service is unavailable unless POSIX(ON) runtime option specified and z/OS UNIX System Services are started. | |
CEE5J0 | Severity | 4 |
Msg_No | 5728 | |
Message | Address exception while referencing storage allocated by condition variable attribute initialization for condattr_t object specified by condattr. | |
CEE5JF | Severity | 3 |
Msg_No | 5743 | |
Message | The condattr_t object specified by condattr is not valid (not initialized). | |
CEE5JM | Severity | 3 |
Msg_No | 5750 | |
Message | Address exception attempting to store attribute value at address specified for kind. | |
CEE5JN | Severity | 4 |
Msg_No | 5751 | |
Message | Valid attribute value for condattr_t object specified by condattr not found in attribute object storage. |