I’m looking for a way to suspend a module with only the module handle. Alternatively is there a way I can grab the main thread handle with the module handle? I am still quite new to C++ so I’m not sure if this is possible.
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 can’t suspend modules. You can suspend threads although you should not do so. A module does not have a main thread. A process has a main thread.
Suspending a thread is not something that should be done in
a forceful way. Doing so leads to deadlocks. You should instead signal the thread to pause and then wait until it can do so. Let
the thread pause when it knows it is in a safe state to do so.
Sorry if this sounds unhelpful but you need to explain your real problem.