由网友(三封情书)分享简介:我看过这个文件,我想我明白了。一个AutoResetEvent复位时,code通过 event.WaitOne(),但ManualResetEvent不I have read the documentation on this and I think I understand. An AutoResetEvent r...
我看过这个文件,我想我明白了。一个AutoResetEvent复位时,code通过 event.WaitOne()
,但ManualResetEvent不
I have read the documentation on this and I think I understand. An AutoResetEvent
resets when the code passes through event.WaitOne()
, but a ManualResetEvent
does not.
这是正确的?
推荐答案
是的。它像一个收费站和一个门之间的差异。该的ManualResetEvent
是门,需要被关闭(复位)手动。该的AutoResetEvent
是一个收费站,可以让一辆车去了,并自动关闭在下单前可以打通。
Yes. It's like the difference between a tollbooth and a door. The ManualResetEvent
is the door, which needs to be closed (reset) manually. The AutoResetEvent
is a tollbooth, allowing one car to go by and automatically closing before the next one can get through.
相关推荐
最新文章