| www.delorie.com/archives/browse.cgi | search |
On Mon, Aug 05, 2002 at 11:41:28AM -0400, Chris Faylor wrote:
> The below should reduce the window of the race but not eliminate it.
> Does it make any difference to the observed behavior?
It helps. The behaviour disappered for me. Only...
> - SuspendThread (info->h);
> + SuspendThread (GetCurrentThreadId ());
^^^^^^^^^^^^^^^^^^^^^
...that should be GetCurrentThread ()
Question: Why is SetEvent() called at that point at all? Since
__name is set to NULL, detach doesn't call WaitForSingleObject()
anyway. What am I missing now?
Corinna
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |