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.
有没有办法找出窗口中所有当前发出信号的信号量?
一种方法是反复调用WaitForMultipleObjects(bWaitAll=FALSE, dwMilliseconds=0) ,每次删除一个(信号)HANDLE,直到我们得到一个WAIT_TIMEOUT, 但这既麻烦又慢。
有没有更好的办法?
WaitForSingleObject()? 我认为任何标准函数都不会给出信号对象的位掩码/数组。
WaitForSingleObject()