mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (thread_start_func_2): store the result of first_func
as well as first_proc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08b53aa67a
commit
56f2d0aa98
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
Tue Mar 20 01:02:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Mar 20 01:38:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* thread.c (thread_start_func_2): store the result of first_func
|
||||
as well as first_proc.
|
||||
|
||||
* thread.c (thread_create_core): block is not used if first_func
|
||||
is given.
|
||||
|
|
2
thread.c
2
thread.c
|
@ -304,7 +304,7 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start)
|
|||
RARRAY_LEN(args), RARRAY_PTR(args));
|
||||
}
|
||||
else {
|
||||
(*th->first_func)(th->first_func_arg);
|
||||
th->value = (*th->first_func)(th->first_func_arg);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue