From 528fccade9ca5f90db376e08b2cb85b3fc822a45 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 19 Jun 2001 04:49:08 +0000 Subject: * Made organisational-only changes to UWIN additions. * dll.c (dllMain): Moved UWIN process attach code to pthread_win32_process_attach_np(); moved instance of pthread_count to global.c. * global.c (pthread_count): Moved from dll.c. * nonportable.c (pthread_win32_process_attach_np): Moved _UWIN code to here from dll.c. * implement.h (pthread_count): Define extern int. * create.c (pthread_count): Remove extern int. * private.c (pthread_count): Likewise. * exit.c (pthread_count): Likewise. Contributed by - David Korn * dll.c: Added changes necessary to work with UWIN. * create.c: Likewise. * pthread.h: Likewise. * misc.c: Likewise. * exit.c: Likewise. * private.c: Likewise. * implement.h: Likewise. There is some room at the start of struct pthread_t_ to implement the signal semantics in UWIN's posix.dll although this is not yet complete. * Nmakefile: Compatible with UWIN's Nmake utility. * Nmakefile.tests: Likewise - for running the tests. --- nonportable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nonportable.c') diff --git a/nonportable.c b/nonportable.c index 404d831..150b0c0 100644 --- a/nonportable.c +++ b/nonportable.c @@ -101,7 +101,6 @@ pthread_getw32threadhandle_np(pthread_t thread) * tsWait.tv_nsec = 500000000L; * intRC = pthread_delay_np(&tsWait); */ - int pthread_delay_np (struct timespec * interval) { @@ -141,6 +140,9 @@ pthread_win32_process_attach_np () BOOL result = TRUE; result = ptw32_processInitialize (); +#ifdef _UWIN + pthread_count++; +#endif return result; } -- cgit v1.2.3