From d0aed2a7bfdad688de32a7c4d894590502e6bac4 Mon Sep 17 00:00:00 2001 From: bje Date: Sun, 4 Oct 1998 21:04:28 +0000 Subject: 1998-10-05 Ben Elliston * misc.c (pthread_once): Use the POSIX mutex primitives, not Win32. Remove irrelevant FIXME comment. * pthread.h (PTHREAD_ONCE_INIT): Define. * tests/once1.c: New file; test for pthread_once(). Passes. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index aa08366..91c1c68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 1998-10-05 Ben Elliston * misc.c (pthread_equal): Correct inverted logic bug. + (pthread_once): Use the POSIX mutex primitives, not Win32. Remove + irrelevant FIXME comment. * global.c (PTHREAD_MUTEX_INITIALIZER): Move to pthread.h. @@ -10,6 +12,7 @@ we call pthread_mutex_create() to initialise the object. This fixes the problem of how to handle statically initialised objects that can't call InitializeCriticalSection() due to their context. + (PTHREAD_ONCE_INIT): Define. * mutex.c (pthread_mutex_init): Set valid flag. (pthread_mutex_destroy): Clear valid flag. @@ -25,6 +28,8 @@ * tests/equal.c: Poor test; remove. * tests/equal1.c New file; test pthread_equal(). Passes. + + * tests/once1.c: New file; test for pthread_once(). Passes. 1998-10-04 Ben Elliston -- cgit v1.2.3