Is it possible to use wxMutex->Lock() in an event handler? Since it’s the main program thread (gui thread) it can’t sleep right?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You certainly can – it’s not going to blow up your computer or melt your hard drive or cause demons to fly out of your nostrils if you try.
That said, doing anything on your UI thread that might block is bad, bad, bad, bad, bad.
So while you technically can, you really shouldn’t.