Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-05-05 01:02:15 +0400
committerChristopher Faylor <me@cgf.cx>2001-05-05 01:02:15 +0400
commit63b61cd19ff1ae741a8c3403c1c3fa12bea1c893 (patch)
treec6ca5e70cf2fce1f7793c55d141a732fc0e2d15f /winsup/cygwin/exceptions.cc
parent17743fbc49ebb23300e0a36d8c5a27ed63e2bf41 (diff)
Revert much of previous erroneous checkin. Add ChangeLog entry.
* pinfo.h: Correctly set __SIGOFFSET. * path.cc (hash_path_name): Avoid calling library functions for simple copying of characters. * shortcut.c: Use WIN32_LEAN_AND_MEAN. * smallprint.c: Ditto. * environ.cc (getwinenv): Minor clarity fix. * localtime.c: No need to include windows.h * string.h: New file.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 9f37b00da..422f349d3 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -632,11 +632,11 @@ bool
sigthread::get_winapi_lock (int test)
{
if (test)
- return !ilockexch (&winapi_lock, 1);
+ return !InterlockedExchange (&winapi_lock, 1);
/* Need to do a busy loop because we can't block or a potential SuspendThread
will hang. */
- while (ilockexch (&winapi_lock, 1))
+ while (InterlockedExchange (&winapi_lock, 1))
Sleep (1);
return 1;
}
@@ -645,7 +645,7 @@ void
sigthread::release_winapi_lock ()
{
/* Assumes that we have the lock. */
- ilockexch (&winapi_lock, 0);
+ InterlockedExchange (&winapi_lock, 0);
}
static void __stdcall interrupt_setup (int sig, void *handler, DWORD retaddr,