diff options
author | bje <bje> | 1998-07-10 13:15:29 +0000 |
---|---|---|
committer | bje <bje> | 1998-07-10 13:15:29 +0000 |
commit | 3907d7b591e7068d91bf4ac1de88cc020c7499f1 (patch) | |
tree | eaddda7fe5405649506a7cbbe7d6a1114f56406a | |
parent | fbf6d5a2648829e3f24a676f1fb67d8cb7e11864 (diff) |
1998-07-10 Ben Elliston <bje@cygnus.com>
* misc.c (pthread_self): Implement.
-rw-r--r-- | misc.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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(); +} |