summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorbje <bje>1998-07-17 12:47:43 +0000
committerbje <bje>1998-07-17 12:47:43 +0000
commit6002595e3c1f49c2a1fa337e4d86013325a0c44c (patch)
tree02aeae2e6e042b997aca47069f9b668fad32e813 /ChangeLog
parent270256a021c517590f5869a6f8a3f7e73d1fe63e (diff)
* ChangeLog: Update.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 551f607..28e0914 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
1998-07-17 Ben Elliston <bje@cygnus.com>
+ * pthread.h (PTHREADS_PROCESS_PRIVATE): Remove.
+ (PTHREAD_PROCESS_SHARED): Likewise. No support for mutexes shared
+ across processes for now.
+ (pthread_mutex_t): Use a Win32 CRITICAL_SECTION type for better
+ performance.
+
* implement.h (_pthread_mutexattr_t): Remove shared attribute.
* mutex.c (pthread_mutexattr_setpshared): This optional function
@@ -8,6 +14,15 @@
primitives. Critical section objects in Win32 cannot be shared
between processes.
(pthread_mutexattr_getpshared): Likewise.
+ (pthread_mutexattr_init): No need to malloc any storage; the
+ attributes structure is now empty.
+ (pthread_mutexattr_destroy): This is now a nop.
+ (pthread_mutex_init): Use InitializeCriticalSection().
+ (pthread_mutex_destroy): Use DeleteCriticalSection().
+ (pthread_mutex_lock): Use EnterCriticalSection().
+ (pthread_mutex_trylock): Use TryEnterCriticalSection(). This is
+ not supported by Windows 9x, but trylock is a hack anyway, IMHO.
+ (pthread_mutex_unlock): Use LeaveCriticalSection().
1998-07-14 Ben Elliston <bje@cygnus.com>