summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 14:49:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 14:49:43 +0000
commit215a7a8003bd292ad6bb23e141aa187919f1e9ed (patch)
treeeebd5b5d658aebca97c4cc3521eda2b36c52c82b /thread.c
parent24bd30901b80856b2751a2545657fbbf3528fd33 (diff)
downloadruby-215a7a8003bd292ad6bb23e141aa187919f1e9ed.tar.gz
ruby-215a7a8003bd292ad6bb23e141aa187919f1e9ed.tar.xz
ruby-215a7a8003bd292ad6bb23e141aa187919f1e9ed.zip
* thread.c (thread_create_core): set thread group before creating
thread. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index e45062c20..ead451ccd 100644
--- a/thread.c
+++ b/thread.c
@@ -302,7 +302,6 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
#ifdef __ia64
th->machine_register_stack_start = register_stack_start;
#endif
- th->thgroup = th->vm->thgroup_default;
thread_debug("thread start: %p\n", th);
native_mutex_lock(&th->vm->global_interpreter_lock);
@@ -383,6 +382,7 @@ thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS))
th->first_func = fn;
th->priority = GET_THREAD()->priority;
+ th->thgroup = th->vm->thgroup_default;
native_mutex_initialize(&th->interrupt_lock);
/* kick thread */