mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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
This commit is contained in:
parent
2b1088c89f
commit
b2bcef7294
4 changed files with 22 additions and 0 deletions
|
@ -1535,4 +1535,10 @@ rb_reserved_fd_p(int fd)
|
|||
#endif
|
||||
}
|
||||
|
||||
rb_nativethread_id_t
|
||||
rb_nativethread_self(void)
|
||||
{
|
||||
return pthread_self();
|
||||
}
|
||||
|
||||
#endif /* THREAD_SYSTEM_DEPENDENT_IMPLEMENTATION */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue