Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我处理了一些由 WFMO 发出信号的事件,此时它发出了更多 N 次信号。WFMO会返回一次还是N次?
一次。事件基本上就像一个布尔变量;SetEvent几乎与event = true;-- 如果它已经为真,则将其设置为 true 无效。
SetEvent
event = true;
如果您想要保持计数的东西,请考虑使用信号量而不是事件。