diff options
author | bje <bje> | 1998-07-17 12:47:43 +0000 |
---|---|---|
committer | bje <bje> | 1998-07-17 12:47:43 +0000 |
commit | 6002595e3c1f49c2a1fa337e4d86013325a0c44c (patch) | |
tree | 02aeae2e6e042b997aca47069f9b668fad32e813 | |
parent | 270256a021c517590f5869a6f8a3f7e73d1fe63e (diff) |
* ChangeLog: Update.
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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> |