ManualResetEvent(Boolean) 생성자

정의

초기 상태를 신호로 설정할지 여부를 나타내는 부울 값을 사용하여 클래스의 새 인스턴스 ManualResetEvent 를 초기화합니다.

public:
 ManualResetEvent(bool initialState);
public ManualResetEvent(bool initialState);
new System.Threading.ManualResetEvent : bool -> System.Threading.ManualResetEvent
Public Sub New (initialState As Boolean)

매개 변수

initialState
Boolean

true 신호를 받은 초기 상태를 설정하려면 다음을 실행합니다. false 초기 상태를 서명되지 않은 상태로 설정합니다.

설명

초기 상태가 ManualResetEvent 신호를 받으면(즉, 전달 true 을 통해 initialState생성되는 경우) do block에서 ManualResetEvent 대기하는 스레드가 차단되지 않습니다. 초기 상태가 서명되지 않은 경우 메서드가 호출될 때까지 스레드가 Set 차단됩니다.

적용 대상

추가 정보