mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* thread_pthread.h, thread_win32.h: rename rb_thread_id_t to
rb_nativethread_id_t. * thread_pthread.c, vm_core.h: use rb_nativethread_id_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
55201cac9e
commit
2b1088c89f
5 changed files with 12 additions and 5 deletions
|
@ -572,7 +572,7 @@ get_stack(void **addr, size_t *size)
|
|||
#endif
|
||||
|
||||
static struct {
|
||||
rb_thread_id_t id;
|
||||
rb_nativethread_id_t id;
|
||||
size_t stack_maxsize;
|
||||
VALUE *stack_start;
|
||||
#ifdef __ia64
|
||||
|
@ -694,7 +694,7 @@ ruby_init_stack(volatile VALUE *addr
|
|||
static int
|
||||
native_thread_init_stack(rb_thread_t *th)
|
||||
{
|
||||
rb_thread_id_t curr = pthread_self();
|
||||
rb_nativethread_id_t curr = pthread_self();
|
||||
|
||||
if (pthread_equal(curr, native_main_thread.id)) {
|
||||
th->machine_stack_start = native_main_thread.stack_start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue