Advertisement Jump to content


This topic is now archived and is closed to further replies.



This topic is 6178 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What does exactly do the WaitForSingleObject function? I''ve been looking for that in msdn but I couldn''t find an exact explanation. thnx.

Share this post

Link to post
Share on other sites
From MSDN:
The WaitForSingleObject function checks the current state of the specified object. If the object''s state is nonsignaled, the calling thread enters an efficient wait state. The thread consumes very little processor time while waiting for the object state to become signaled or the time-out interval to elapse.

Before returning, a wait function modifies the state of some types of synchronization objects. Modification occurs only for the object whose signaled state caused the function to return. For example, the count of a semaphore object is decreased by one.

WaitForSingleObject waits until an object is in a non-signalled mode (ie, no other thread can claim "ownership" of it, meaning it is safe to access and modify).

I wanna work for Microsoft!
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!