summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/thread.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-06-19 00:52:59 +0000
committerChristopher Faylor <me@cgf.cx>2012-06-19 00:52:59 +0000
commit978441cc0ea58a2f3fd5d84f1d0f50bc8307b34a (patch)
tree3afb58a7fcc101fd407582a1c38b020526797e1e /winsup/cygwin/thread.h
parent2addde8cb1e794a9818b9417839524dbc05401da (diff)
downloadcygnal-978441cc0ea58a2f3fd5d84f1d0f50bc8307b34a.tar.gz
cygnal-978441cc0ea58a2f3fd5d84f1d0f50bc8307b34a.tar.bz2
cygnal-978441cc0ea58a2f3fd5d84f1d0f50bc8307b34a.zip
* cygwait.h (LARGE_NULL): Define.
(cancelable_wait): Define variant which accepts DWORD time argument. (cygwait): Use cancelable_wait with DWORD argument. (cygwait): Use cancelable_wait with DWORD argument and cw_sig_eintr for timeout-only case. * exceptions.cc (handle_sigsuspend): Use LARGE_NULL as second argument to distinguish between cancelable_wait variants. * thread.cc (pthread_mutex::lock): Ditto. (pthread::join): Ditto. (semaphore::_timedwait): Ditto. * thread.h (fast_mutex::lock): Ditto. * wait.cc (wait4): Ditto.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index 62a06f60b..a4f5a952c 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -60,7 +60,7 @@ public:
void lock ()
{
if (InterlockedIncrement ((long *) &lock_counter) != 1)
- cancelable_wait (win32_obj_id, NULL, cw_sig);
+ cancelable_wait (win32_obj_id, LARGE_NULL, cw_sig);
}
void unlock ()