C library interface: pthread_getspecific()
CEEOPGS obtains the thread-specific value associated with a key that was obtained from a previous call to CEEOPKC. Different threads can have different values bound to the same key.
When successful, CEEOPGS stores the value currently bound to the specified key to the storage location referred to by the storage location which is in turn referred to by value. Language Environment manages the storage associated with the key/value bindings.
CEE_THDKEY *key;
POINTER *value;
FEED_BACK *fc;
L R15,CEECAALEOV-CEECAA(,R12) CAA address is in R12
L R15,0096(,R15)
BALR R14,R15
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 | POSIX services not available. | |
CEE5CQ | Severity | 3 |
Msg_No | 5530 | |
Message | The key value is not valid. That is, the key identifier is not one of the keys previously defined by CEEOPKC. | |
CEE5CS | Severity | 3 |
Msg_No | 5532 | |
Message | Thread termination is in progress. This operation is not allowed. A key get operation is not permitted during thread termination. | |
CEE5CT | Severity | 3 |
Msg_No | 5533 | |
Message | Program interrupt referring to user parameters. |