C library interface: pthread_setspecific()
CEEOPSS establishes a thread-specific value to a key obtained by a previous call to CEEOPKC. Different threads can bind different values to the same key.
When successful, CEEOPSS obtains the value from the location referred to by value and assigns it to a Language Environment-managed storage location associated with the key.
CEE_THDKEY *key;
CEE_TOKEN *value;
FEED_BACK *fc;
L R15,CEECAALEOV-CEECAA(,R12) CAA address is in R12
L R15,0100(,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. | |
CEE5CP | Severity | 3 |
Msg_No | 5529 | |
Message | There was not enough storage available to bind the value to the key. | |
CEE5CQ | Severity | 3 |
Msg_No | 5530 | |
Message | The key value is not valid. The key identifier is not one of the keys previously defined by CEEOPKC. | |
CEE5CR | Severity | 3 |
Msg_No | 5531 | |
Message | Thread termination is in progress. This operation is not allowed. A key set operation is not permitted during thread termination. | |
CEE5CT | Severity | 3 |
Msg_No | 5533 | |
Message | Incorrect user parameter caused a program exception. |