IHostSemaphore Interface

Represents the host's implementation of a semaphore for threading.

interface IHostSemaphore : IUnknown {
    HRESULT ReleaseSemaphore (
        [in]  LONG  lReleaseCount,
        [out] LONG  *lpPreviousCount
    );
    HRESULT Wait (
        [in]  DWORD dwMilliseconds,
        [in]  DWORD option
    );
};

Methods

Method

Description

IHostSemaphore::ReleaseSemaphore Method

Increases the count of the current IHostSemaphore instance by the specified amount.

IHostSemaphore::Wait Method

Causes the current IHostSemaphore instance to wait until it is owned or the specified amount of time elapses.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

ICLRSyncManager Interface

IHostAutoEvent Interface

IHostManualEvent Interface

IHostSyncManager Interface

Other Resources

Hosting Interfaces