ICorDebugThread4::GetBlockingObjects Method

Provides an ordered enumeration of CorDebugBlockingObject structures that provide thread blocking information.

Syntax

HRESULT GetBlockingObjects (
    [out] ICorDebugBlockingObjectEnum **ppBlockingObjectEnum

Parameters

ppBlockingObjectEnum [out] A pointer to an ordered enumeration of CorDebugBlockingObject structures.

Remarks

The first element in the returned enumeration corresponds to the first structure that is blocking the thread. The second element corresponds to a blocking item that is encountered while running an asynchronous procedure call (APC) when blocked on the first, and so on.

The enumeration is valid only for the duration of the current synchronized state.

This method must be called while the debuggee is in a synchronized state.

If ppBlockingObjectEnum is not a valid pointer, the result is undefined.

If a thread is blocked and the error cannot be determined, the method returns an HRESULT that indicates failure; otherwise, it returns S_OK.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4

See also