diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-18 08:40:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-18 08:40:13 +0000 |
commit | 769ff25033ff891e1487dfc7b714f0daa6ebdf65 (patch) | |
tree | 966dc305bfddb1b740f825806de4720d8e720825 /thread.c | |
parent | a4e9109c72bf0b7201b29df242b03c061928fbc3 (diff) | |
download | ruby-769ff25033ff891e1487dfc7b714f0daa6ebdf65.tar.gz ruby-769ff25033ff891e1487dfc7b714f0daa6ebdf65.tar.xz ruby-769ff25033ff891e1487dfc7b714f0daa6ebdf65.zip |
* thread.c (is_ruby_native_thread): check properly. [ruby-dev:31166]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3002,5 +3002,8 @@ Init_Thread(void) int is_ruby_native_thread(void) { - return Qtrue; + rb_thread_t *rb_thread_check_ptr(rb_thread_t *ptr); + rb_thread_t *th = ruby_thread_from_native(); + + return th ? Qtrue : Qfalse; } |