CEEOPAGD

C library interface: pthread_attr_getdetachstate()

CEEOPAGD obtains the thread's detachstate attribute from the specified thread attribute object.

Syntax

void CEEOPAGD (attr, detachstate, [fc])
CEE_PTAT    *attr;
INT4        *detachstate;
FEED_BACK   *fc;
CEEOPAGD
Call this CWI interface as follows:
L     R15,CEECAALEOV-CEECAA(,R12)     CAA address is in R12
L     R15,0132(,R15)
BALR  R14,R15
attr (input)
The initialized thread attribute object.
detachstate (output)
0
the thread remains in an undetached state after termination of the thread
1
the thread is detached on completion
fc (output/optional)
The feedback code returned by the service. It indicates the degree of success in getting the thread stack size attribute.

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.
CEE5F1 Severity 3
Msg_No 5601
Message Thread attribute object that is not valid was specified.