简体   繁体   English

击中AutoResetEvent的WaitOne()后清除多个设置

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM