This method is specific to Version 4, or higher, of the OS/2 operating system.
Each object has associated with it a mutex semaphore that can be used to serialize access to resources. This instance method is called to request the mutex semaphore for an object.
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG ulTimeout; /* Return code from WinRequestMutexSem. */ ULONG rc; /* Success indicator */ rc = _wpRequestObjectMutexSem(somSelf, ulTimeout);