summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/thread.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-25 03:51:51 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-25 03:51:51 +0000
commitcd2bce7142ff77e1e55149e5edfe04167b4e8964 (patch)
treeed32cb9d466d766149964a60b3707a1fda5a7c42 /winsup/cygwin/thread.cc
parentdbf193cea8ca484b09053d328bce58238168ef15 (diff)
downloadcygnal-cd2bce7142ff77e1e55149e5edfe04167b4e8964.tar.gz
cygnal-cd2bce7142ff77e1e55149e5edfe04167b4e8964.tar.bz2
cygnal-cd2bce7142ff77e1e55149e5edfe04167b4e8964.zip
* include/tzfile.h: Add some missing entries.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 23939b95c..e10824442 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -1574,7 +1574,7 @@ pthread_mutex::_trylock (pthread_t self)
{
int result = 0;
- if (InterlockedCompareExchange ((long *)&lock_counter, 1, 0 ) == 0)
+ if (InterlockedCompareExchange ((long *) &lock_counter, 1, 0) == 0)
set_owner (self);
else if (type == PTHREAD_MUTEX_RECURSIVE && pthread::equal (owner, self))
result = lock_recursive ();