Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cygthread: suspend thread before terminating.
It seems SuspendThread makes sure the thread is "booted" from emulation before it is suspended. Hopefully this means it won't be holding any locks or otherwise leave emulation in a bad state when it's terminated.
- Loading branch information
It is advisable to initialize the ContextFlags field, for example:
to make sure the API actually does anything as well as make sure it doesn't overwrite the stack should the accidental flag combination be valid and include CONTEXT_XSTATE.