From 3907d7b591e7068d91bf4ac1de88cc020c7499f1 Mon Sep 17 00:00:00 2001 From: bje Date: Fri, 10 Jul 1998 13:15:29 +0000 Subject: 1998-07-10 Ben Elliston * misc.c (pthread_self): Implement. --- misc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 misc.c (limited to 'misc.c') diff --git a/misc.c b/misc.c new file mode 100644 index 0000000..1ad1bf9 --- /dev/null +++ b/misc.c @@ -0,0 +1,18 @@ +/* + * misc.c + * + * Description: + * This translation unit implements miscellaneous thread functions. + */ + +#include "pthread.h" + +pthread_t pthread_self(void) +{ + /* It looks like a pthread_t needs to be a HANDLE, but Win32 also has + another way of identifying threads: their thread id. We hope + that all of the Win32 functions we are going to use only need + HANDLEs. The morons. */ + + return GetCurrentThread(); +} -- cgit v1.2.3