From 5865dd7b74b0b23eb178249bfd5a000cc929f147 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 10 Jul 2001 08:38:43 +0000 Subject: Untested revamp of barrier.c. * barrier.c: Still more revamping. The exclusive access mutex isn't really needed so it has been removed and replaced by an InterlockedDecrement(). nSerial has been removed. iStep is now dual-purpose. The process shared attribute is now stored in the barrier struct. * implement.h (pthread_barrier_t_): Lost some/gained one elements. * private.c (ptw32_threadStart): Removed some comments. --- private.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'private.c') diff --git a/private.c b/private.c index de560c3..a332385 100644 --- a/private.c +++ b/private.c @@ -369,15 +369,10 @@ ptw32_threadStart (void * vthreadParms) * That function may call pthread_exit() or be canceled, which will * be handled by the outer try block. * - * ptw32_terminate() will be called if there is no user supplied function. + * ptw32_terminate() will be called if there is no user + * supplied function. */ - //Original invocation: - //(void) terminate(); - - - //New invocation: - // a) get pointer to the termination function #if defined(_MSC_VER) terminate_function term_func = set_terminate(0); #else @@ -386,14 +381,10 @@ ptw32_threadStart (void * vthreadParms) set_terminate(term_func); - // b) call the termination function (if any) if (term_func != 0) { term_func(); } - // c) if there was no termination function or the termination function did - // not exit thread/process, (we got this far), propagate the exception on! - // (should be caught by the second level try/catch block below) throw; } } -- cgit v1.2.3