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: 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

Concepts

Managed and Unmanaged Threading

Reference

IHostSyncManager Interface

Thread

Other Resources

Hosting Interfaces