[英]Clear multiple set after hitting the WaitOne() of AutoResetEvent
Do I need to call reset
to clear multiple set after hitting the WaitOne();
击中
WaitOne();
后,是否需要调用reset
清除多个设置WaitOne();
of AutoResetEvent
in C#? C#中的
AutoResetEvent
?
AutoResetEvent
没有计数器-只是一个设置/未设置状态,所以不,即使多次设置事件,在WaitOne()
调用返回后,您也不必执行任何特殊操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.