Places the current thread into a wait state until another thread in the current process has ended. It then returns the thread identifier of the ending thread.

#define INCL_DOSPROCESS
#include <os2.h>

PTID      ptid;    /*  Address of the thread identification. */
ULONG     option;  /*  An indicator that specifies whether to return if no thread has ended. */
APIRET    ulrc;    /*  Return Code. */

ulrc = DosWaitThread(ptid, option);


[Back] [Next]