diff options
author | Christopher Faylor <me@cgf.cx> | 2001-05-04 21:02:15 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-05-04 21:02:15 +0000 |
commit | 63b61cd19ff1ae741a8c3403c1c3fa12bea1c893 (patch) | |
tree | c6ca5e70cf2fce1f7793c55d141a732fc0e2d15f /winsup/cygwin/debug.cc | |
parent | 17743fbc49ebb23300e0a36d8c5a27ed63e2bf41 (diff) | |
download | cygnal-63b61cd19ff1ae741a8c3403c1c3fa12bea1c893.tar.gz cygnal-63b61cd19ff1ae741a8c3403c1c3fa12bea1c893.tar.bz2 cygnal-63b61cd19ff1ae741a8c3403c1c3fa12bea1c893.zip |
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/debug.cc')
-rw-r--r-- | winsup/cygwin/debug.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/debug.cc b/winsup/cygwin/debug.cc index 4ddc8b841..bd58e47b4 100644 --- a/winsup/cygwin/debug.cc +++ b/winsup/cygwin/debug.cc @@ -87,7 +87,7 @@ thread_stub (VOID *arg) exception_list except_entry; /* Give up our slot in the start_buf array */ - (void) ilockexch (&((thread_start *) arg)->notavail, 0); + (void) InterlockedExchange (&((thread_start *) arg)->notavail, 0); /* Initialize this thread's ability to respond to things like SIGSEGV or SIGFPE. */ @@ -112,7 +112,7 @@ makethread (LPTHREAD_START_ROUTINE start, LPVOID param, DWORD flags, { /* Search the start_buf array for an empty slot to use */ for (info = start_buf; info < start_buf + NTHREADS; info++) - if (!ilockexch (&info->notavail, 1)) + if (!InterlockedExchange (&info->notavail, 1)) goto out; /* Should never hit here, but be defensive anyway. */ |