原文如下:

 

 

《Win32多线程程序设计》中的一处错误

这里有处错误:当我们对AutoReset Event对象调用SetEvent(),该Event不会丢失。下文引自MSDN:

When the state of an auto-reset event object is signaled, it remains signaled until a single waiting thread is released; the system then automatically resets the state to nonsignaled. If no threads are waiting, the event object's state remains signaled.

相关文章:

  • 2022-02-06
  • 2021-08-16
  • 2021-06-20
  • 2022-12-23
  • 2022-03-08
  • 2021-10-18
  • 2021-10-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-05-29
  • 2021-09-23
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案