From b1dc8324d03053ffb427424c8de046863757d8ec Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 26 May 2007 14:57:19 +0000 Subject: Added pthread_getw32threadid_np function untested --- pthread_getw32threadhandle_np.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pthread_getw32threadhandle_np.c') diff --git a/pthread_getw32threadhandle_np.c b/pthread_getw32threadhandle_np.c index 9d22def..309a8f2 100644 --- a/pthread_getw32threadhandle_np.c +++ b/pthread_getw32threadhandle_np.c @@ -51,3 +51,15 @@ pthread_getw32threadhandle_np (pthread_t thread) { return ((ptw32_thread_t *)thread.p)->threadH; } + +/* + * pthread_getw32threadid_np() + * + * Returns the win32 thread id that the POSIX + * thread "thread" is running as. + */ +DWORD +pthread_getw32threadid_np (pthread_t thread) +{ + return ((ptw32_thread_t *)thread.p)->thread; +} -- cgit v1.2.3