mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 19:10:36 +08:00
minor cleanups
This commit is contained in:
parent
8e4d969260
commit
ff6e295ebf
@ -1,6 +1,7 @@
|
||||
Wed Sep 12 13:03:00 2001 Robert Collins <rbtcollins@hotmail.com>
|
||||
|
||||
* autoload.cc (LoadDLLfuncEx): Auto load TryEnterCriticalSection - its an NT only call.
|
||||
* autoload.cc (LoadDLLfuncEx): Auto load TryEnterCriticalSection - it's
|
||||
an NT only call.
|
||||
* thread.cc (pthread_cond::TimedWait): Use critical sections for NT.
|
||||
(pthread_cond::fixup_after_fork): Don't detect bad apps.
|
||||
(pthread_mutex::pthread_mutex): Use critical sections for NT.
|
||||
@ -9,8 +10,10 @@ Wed Sep 12 13:03:00 2001 Robert Collins <rbtcollins@hotmail.com>
|
||||
(pthread_mutex::TryLock): Ditto.
|
||||
(pthread_mutex::UnLock): Ditto.
|
||||
(pthread_mutex::fixup_after_fork): Ditto. Also do not detect bad apps.
|
||||
(__pthread_mutex_trylock): Move WIN32 specific test into the class method.
|
||||
(__pthread_mutex_destroy): Prevent dereferencing passed pointer without valid address.
|
||||
(__pthread_mutex_trylock): Move WIN32 specific test into the class
|
||||
method.
|
||||
(__pthread_mutex_destroy): Prevent dereferencing passed pointer without
|
||||
valid address.
|
||||
* thread.h (pthread_mutex): Use critical sections for NT.
|
||||
|
||||
Tue Sep 11 21:55:37 2001 Christopher Faylor <cgf@cygnus.com>
|
||||
@ -77,8 +80,8 @@ Sun Sep 9 20:09:11 2001 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
Mon Sep 10 08:28:00 2001 Robert Collins <rbtcollins@hotmail.com>
|
||||
|
||||
* thread.h (MT_Interface): Remove pshared mutex array.
|
||||
Add a threadsafe list for mutex tracking (for fixup after fork).
|
||||
* thread.h (MT_Interface): Remove pshared mutex array. Add a
|
||||
threadsafe list for mutex tracking (for fixup after fork).
|
||||
* thread.cc (MTInterface::Init): Remove pshared mutex array.
|
||||
(pthread_mutex::pthread_mutex): Remove pshared mutex functionality.
|
||||
Fail with EINVAL on attempts to use pshared functionality.
|
||||
|
@ -3,6 +3,7 @@
|
||||
Copyright 1998, 1999, 2000, 2001 Red Hat, Inc.
|
||||
|
||||
Originally written by Marco Fuykschot <marco@ddi.nl>
|
||||
Substantialy enhanced by Robert Collins <<rbtcollins@hotmail.com>
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@ -10,19 +11,19 @@ This software is a copyrighted work licensed under the terms of the
|
||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
/*Implementation overview and caveats:
|
||||
/* Implementation overview and caveats:
|
||||
|
||||
Win32 puts some contraints on what can and cannot be implemented. Where possible
|
||||
we work around those contrainsts. Where we cannot work around the constraints we
|
||||
either pretend to be conformant, or return an error code.
|
||||
Win32 puts some contraints on what can and cannot be implemented. Where
|
||||
possible we work around those contrainsts. Where we cannot work around
|
||||
the constraints we either pretend to be conformant, or return an error
|
||||
code.
|
||||
|
||||
Some caveats: PROCESS_SHARED objects while they pretend to be process shared,
|
||||
may not actually work. Some test cases are needed to determine win32's behaviour.
|
||||
My suspicion is that the win32 handle needs to be opened with different flags for
|
||||
proper operation.
|
||||
Some caveats: PROCESS_SHARED objects while they pretend to be process
|
||||
shared, may not actually work. Some test cases are needed to determine
|
||||
win32's behaviour. My suspicion is that the win32 handle needs to be
|
||||
opened with different flags for proper operation.
|
||||
|
||||
R.Collins, April 2001.
|
||||
*/
|
||||
R.Collins, April 2001. */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user