* cygthread.cc (cygthread::detach): Revert to just waiting for thred event
since waiting for anything else is racy. * timer.cc (timer_tracker::hcancel): Rename from cancel. (timer_tracker::cancel): New method. (timer_tracker::th): Remove. (timer_tracker::~timer_tracker): Call cancel method. (timer_tracker::timer_tracker): Ditto. (timer_tracker::timer_tracker): Always, clear cancel, even though it is probably not strictly necessary for ttstart. (timer_thread): Accommodate cancel -> hcancel rename. (timer_tracker::settime): Ditto. (timer_tracker::gettime): Ditto. (timer_delete): Ditto. * cygwin.din: Export _ctype_. * include/ctype.h: Mark that _ctype_ is imported.
This commit is contained in:
@@ -315,7 +315,7 @@ cygthread::detach (HANDLE sigwait)
|
||||
if (!sigwait)
|
||||
/* If the caller specified a special handle for notification, wait for that.
|
||||
This assumes that the thread in question is auto releasing. */
|
||||
res = WaitForSingleObject (notify_detached ?: *this, INFINITE);
|
||||
res = WaitForSingleObject (*this, INFINITE);
|
||||
else
|
||||
{
|
||||
/* Lower our priority and give priority to the read thread */
|
||||
|
Reference in New Issue
Block a user