summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-10 08:38:43 +0000
committerrpj <rpj>2001-07-10 08:38:43 +0000
commit5865dd7b74b0b23eb178249bfd5a000cc929f147 (patch)
tree348b5d16177ee0adcd9cfd00c948384facfe4965 /private.c
parent1d99828acf48bc6d5a81aadc6123e5172dfc355d (diff)
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.
Diffstat (limited to 'private.c')
-rw-r--r--private.c13
1 files changed, 2 insertions, 11 deletions
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;
}
}