ICLRSyncManager Interface

Defines methods that allow the host to get information about requested tasks and to detect deadlocks in its synchronization implementation.

interface ICLRSyncManager : IUnknown {
    HRESULT CreateRWLockOwnerIterator (
        [in]  SIZE_T     cookie, 
        [out] SIZE_T     *pIterator
    );
    HRESULT DeleteRWLockOwnerIterator (
        [in]  SIZE_T     Iterator
    );
    HRESULT GetMonitorOwner (
        [in]  SIZE_T     cookie,
        [out] IHostTask  **ppOwnerHostTask
    );
    HRESULT GetRWLockOwnerNext (
        [in]  SIZE_T     Iterator, 
        [out] IHostTask  **ppOwnerHostTask
    );
};

Methods

Method

Description

ICLRSyncManager::CreateRWLockOwnerIterator Method

Requests that the common language runtime (CLR) create an iterator for the host to use to determine the set of tasks waiting on a reader-writer lock.

ICLRSyncManager::DeleteRWLockOwnerIterator Method

Requests that the CLR destroy an iterator that was created by a call to CreateRWLockOwnerIterator.

ICLRSyncManager::GetMonitorOwner Method

Gets the task that owns the specified monitor.

ICLRSyncManager::GetRWLockOwnerNext Method

Gets the next task that is waiting on the current reader-writer lock.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

IHostSyncManager Interface

Managed and Unmanaged Threading

Hosting Interfaces

Reference

Thread