Class CWin32Semaphore::
CWin32Semaphore()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: CWin32SemaphoreNext page: ~CWin32Semaphore    Show member index
Public Constructor Declared in:
Win32Semaphore.h

'Declaration' icon -- Shortcut to top of page. Declaration

CWin32Semaphore(
    long lInitialCount,
    long lMaxCount,
    const char* pSemaphoreName=NULL);

'Description' icon -- Shortcut to top of page. Description

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)

'Initializer Override(s)' icon -- Shortcut to top of page. Initializer Override(s)

CGenericSemaphore(
lInitialCount    
lMaxCount    
pSemaphoreName)    
m_hSemaphore(
0)    
m_bDontDelete(
FALSE)    

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CGenericSemaphore  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.