From 050dbefb84bd5831710d5b926434624ffdb786f7 Mon Sep 17 00:00:00 2001 From: bje Date: Fri, 10 Jul 1998 12:45:08 +0000 Subject: 1998-07-10 Ben Elliston * exit.c (pthread_exit): Implement. --- exit.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 exit.c (limited to 'exit.c') diff --git a/exit.c b/exit.c new file mode 100644 index 0000000..af1f50f --- /dev/null +++ b/exit.c @@ -0,0 +1,19 @@ +/* + * exit.c + * + * Description: + * This translation unit implements routines associated with exiting from + * a thread. + */ + +#include "pthread.h" + +void pthread_exit(void * value) +{ + /* The semantics are such that additional tasks must be done for + strict POSIX conformance. We must add code here later which + deals with executing cleanup handlers and such. For now, the + following is mostly correct: */ + + ExitThread((DWORD) value); +} -- cgit v1.2.3