Creates a multiple wait (muxwait) semaphore.

#define INCL_DOSSEMAPHORES
#include <os2.h>

PSZ           pszName;  /*  A pointer to the ASCIIZ name of the semaphore. */
PHMUX         phmux;    /*  A pointer to the handle of the muxwait semaphore. */
ULONG         cSemRec;  /*  The count of semaphore record entries in pSemRec. */
PSEMRECORD    pSemRec;  /*  A pointer to the array of semaphore record entries to put into the muxwait semaphore. */
ULONG         flAttr;   /*  A set of flags that specify the attributes of the semaphore. */
APIRET        ulrc;     /*  Return Code. */

ulrc = DosCreateMuxWaitSem(pszName, phmux,
         cSemRec, pSemRec, flAttr);


[Back] [Next]