IHostSyncManager Interface


Provides methods that allow the common language runtime (CLR) to create synchronization primitives by calling the host instead of using the Win32 synchronization functions.

CreateAutoEvent MethodCreates an auto-reset event object.
CreateCrst MethodCreates a critical section object for synchronization.
CreateCrstWithSpinCount MethodCreates a critical section object with spin count for synchronization.
CreateManualEvent MethodCreates a manual-reset event object.
CreateMonitorEvent MethodCreates a monitored auto-reset event object.
CreateRWLockReaderEvent MethodCreates a manual-reset event object for the implementation of a reader lock.
CreateRWLockWriterEvent MethodCreates an auto-reset event object for the implementation of a writer lock.
CreateSemaphore MethodCreates an IHostSemaphore object for the CLR to use as a semaphore for wait events.
SetCLRSyncManager MethodSets the ICLRSyncManager instance to associate with the current IHostSyncManager instance.

The CLR discovers the host's implementation of IHostSyncManager by calling the IHostControl::GetHostManager method with an IID of IID_IHostSyncManager.

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 2.0

ICLRSyncManager Interface
Hosting Interfaces