summaryrefslogtreecommitdiff
path: root/pthread_getw32threadhandle_np.c
diff options
context:
space:
mode:
authorrpj <rpj>2007-05-26 14:57:19 +0000
committerrpj <rpj>2007-05-26 14:57:19 +0000
commitb1dc8324d03053ffb427424c8de046863757d8ec (patch)
tree0080dbfd318a96acff7fcb066ac8e95e56acd9dc /pthread_getw32threadhandle_np.c
parentdc5c626bef9483c717bee53568aaf5813a551019 (diff)
Added pthread_getw32threadid_np function untested
Diffstat (limited to 'pthread_getw32threadhandle_np.c')
-rw-r--r--pthread_getw32threadhandle_np.c12
1 files changed, 12 insertions, 0 deletions
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;
+}