summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/thread.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-02-25 17:50:13 +0000
committerCorinna Vinschen <corinna@vinschen.de>2015-02-25 17:50:13 +0000
commit0066e440c1398326e7d6ca43fae630b46a1b5a2d (patch)
tree5c66f63ffb4a9ee1567aa6f6e7c5ac87dec238dc /winsup/cygwin/thread.h
parente93954138f44023f4d1d75c3e572295d8230acad (diff)
downloadcygnal-0066e440c1398326e7d6ca43fae630b46a1b5a2d.tar.gz
cygnal-0066e440c1398326e7d6ca43fae630b46a1b5a2d.tar.bz2
cygnal-0066e440c1398326e7d6ca43fae630b46a1b5a2d.zip
* fhandler_tape.cc (fhandler_dev_tape::_lock): Add cw_sig_restart to
cygwait call. * thread.cc (pthread_mutex::lock): Ditto. (semaphore::_timedwait): Fix formatting. (semaphore::_wait): Ditto. * thread.h (fast_mutex::lock): Ditto. ...and fix ChangeLog accordingly.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index badffcb79..3650e9509 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -1,7 +1,7 @@
/* thread.h: Locking and threading module definitions
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009,
- 2010, 2011, 2012, 2013 Red Hat, Inc.
+ 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@@ -60,7 +60,7 @@ public:
void lock ()
{
if (InterlockedIncrement (&lock_counter) != 1)
- cygwait (win32_obj_id, cw_infinite, cw_sig);
+ cygwait (win32_obj_id, cw_infinite, cw_sig | cw_sig_restart);
}
void unlock ()