summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-23 10:46:37 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-23 10:46:37 (GMT)
commitb2bcef7294d1a65363773cfc97ade6bd286ee63a (patch)
treeeb0d6f3223148eba7ffbbd5431884fecb7b7fc8e /thread_win32.c
parent2b1088c89fd003aefa4b3bc585ae5e041334fe0b (diff)
* thread_native.h: add rb_nativethread_self() which returns
current running native thread identifier. * thread_[pthread|win32].c: implement rb_nativethread_self(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index b484fec..250b2b7 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -766,4 +766,11 @@ rb_reserved_fd_p(int fd)
{
return 0;
}
+
+rb_nativethread_id_t
+rb_nativethread_self(void)
+{
+ return GetCurrentThread();
+}
+
#endif /* THREAD_SYSTEM_DEPENDENT_IMPLEMENTATION */