• Advertisement

Archived

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

Sleep() and threads

This topic is 5067 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

Using Sleep() in a MFC worker thread causes my whole app to freeze for the Sleep() interval. Why so?

Share this post


Link to post
Share on other sites
Advertisement
Are you sending any messages to that thread, using SendMessage()? If the thread is sleeping it can''t can''t process the message, and because SendMessage waits until it''s processed, the whole app will freeze.

Share this post


Link to post
Share on other sites

  • Advertisement