Share via


Debugger.NotifyOfCrossThreadDependency 메서드

정의

실행에서 크로스 스레드 종속성과 관련된 경로를 입력한다고 디버거에 알립니다.

public:
 static void NotifyOfCrossThreadDependency();
public static void NotifyOfCrossThreadDependency ();
[System.Runtime.InteropServices.ComVisible(false)]
public static void NotifyOfCrossThreadDependency ();
static member NotifyOfCrossThreadDependency : unit -> unit
[<System.Runtime.InteropServices.ComVisible(false)>]
static member NotifyOfCrossThreadDependency : unit -> unit
Public Shared Sub NotifyOfCrossThreadDependency ()
특성

설명

디버거는 수신하려는 콜백을 구체적으로 사용하도록 설정해야 합니다. 스레드 간 종속성 콜백을 수신하려는 디버거는 ICorDebugProcess3::SetEnableCustomNotification 메서드를 호출해야 합니다.

선택한 NotifyOfCrossThreadDependency 디버거는 알림 시 적절한 조치를 취할 수 있습니다. 예를 들어 함수 평가를 수행하려면 일반적으로 평가를 수행하는 스레드를 제외한 모든 스레드를 동결해야 합니다. 함수 평가에서 원격 시나리오에서 발생할 수 있는 것처럼 둘 이상의 스레드에서 실행이 필요한 경우 평가가 차단됩니다. 이 알림은 NotifyOfCrossThreadDependency 스레드를 해제하거나 함수 평가를 중단해야 한다는 것을 디버거에 알릴 수 있습니다. 이 메서드가 반환된 후 알림은 컬렉션의 적용을 받습니다.

적용 대상