BPX1PTD (pthread_detach) example

The following code detaches a thread (THID) in the calling process. For the callable service, see pthread_detach (BPX1PTD, BPX4PTD) — Detach a thread. AMODE 64 callers use BPX4PTD (pthread_detach) example.
                                              
         CALL  BPX1PTD,              pthread_detach                    +
               (THID,                Input: Thread ID                  +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------