![]() |
CWin32Semaphore() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Constructor |
Declared in: Win32Semaphore.h |
DeclarationCWin32Semaphore( long lInitialCount, long lMaxCount, const char* pSemaphoreName=NULL);
DescriptionCtor 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)
Initializer Override(s)
Function Body
//Create the semaphore
m_hSemaphore=CreateSemaphore(NULL,
lInitialCount,
lMaxCount,
pSemaphoreName);
//Check if we are the owners
if (pSemaphoreName &&
GetLastError()!=ERROR_ALREADY_EXISTS)
SetFirst();
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |