语言

ManualResetEvent.Set 方法

定义

将事件的状态设置为信号,这允许一个或多个等待的线程继续。

public:
 bool Set();
public bool Set();
member this.Set : unit -> bool
Public Function Set () As Boolean

返回

true 如果操作成功,则为否则,为 false.

注解

调用 Set 方法会使等待句柄处于信号状态,直到 Reset() 调用该方法。

适用于