::WaitForSingleObject
时间: 2024-02-04 16:02:23 浏览: 69
WaitForSingleObject是一个函数,用于等待一个内核对象变为已通知状态。它的参数包括一个内核对象的句柄和等待时间。当调用这个函数时,线程会自愿进入等待状态,直到指定的内核对象被触发或者等待时间到达。如果内核对象已经处于触发状态,那么线程不会进入等待状态。这个函数是最常用的等待函数之一。\[1\]\[2\]
#### 引用[.reference_title]
- *1* *3* [《Windows via C/C++》学习笔记 —— 内核对象的“线程同步”之“等待函数”](https://blog.csdn.net/weixin_30300225/article/details/98648887)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [WaitForSingleObject等待函数](https://blog.csdn.net/wzz953200463/article/details/126612909)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文