![]() |
CWin32Semaphore() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Constructor |
Declared in: Win32Semaphore.h |
CWin32Semaphore( long lInitialCount, long lMaxCount, const char* pSemaphoreName=NULL);
Ctor and Dtor lInitialCount - The count the semaphore starts with lMaxCount - Maximum count of the semaphore (can't exceed it) pSemaphoreName - Name of the semaphore (for multiproccess)
//Create the semaphore m_hSemaphore=CreateSemaphore(NULL, lInitialCount, lMaxCount, pSemaphoreName); //Check if we are the owners if (pSemaphoreName && GetLastError()!=ERROR_ALREADY_EXISTS) SetFirst();
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |