summaryrefslogtreecommitdiff
path: root/thread_native.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-23 10:46:37 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-23 10:46:37 +0000
commitb2bcef7294d1a65363773cfc97ade6bd286ee63a (patch)
treeeb0d6f3223148eba7ffbbd5431884fecb7b7fc8e /thread_native.h
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_native.h')
-rw-r--r--thread_native.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_native.h b/thread_native.h
index 2870b895c6..aa037d205f 100644
--- a/thread_native.h
+++ b/thread_native.h
@@ -11,6 +11,8 @@
RUBY_SYMBOL_EXPORT_BEGIN
+rb_nativethread_id_t rb_nativethread_self();
+
void rb_nativethread_lock_initialize(rb_nativethread_lock_t *lock);
void rb_nativethread_lock_destroy(rb_nativethread_lock_t *lock);
void rb_nativethread_lock_lock(rb_nativethread_lock_t *lock);