* thread.c (rb_thread_blocking_region_end): replaced GET_THREAD()
with ruby_thread_from_native(). We don't have GVL here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7643e4604b
commit
0a2da327f4
@ -1,3 +1,8 @@
|
|||||||
|
Tue Nov 20 10:05:56 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* thread.c (rb_thread_blocking_region_end): replaced GET_THREAD()
|
||||||
|
with ruby_thread_from_native(). We don't have GVL here.
|
||||||
|
|
||||||
Tue Nov 20 09:56:15 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Tue Nov 20 09:56:15 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* thread.c (rb_threadptr_execute_interrupts) removed.
|
* thread.c (rb_threadptr_execute_interrupts) removed.
|
||||||
|
2
thread.c
2
thread.c
@ -1070,7 +1070,7 @@ void
|
|||||||
rb_thread_blocking_region_end(struct rb_blocking_region_buffer *region)
|
rb_thread_blocking_region_end(struct rb_blocking_region_buffer *region)
|
||||||
{
|
{
|
||||||
int saved_errno = errno;
|
int saved_errno = errno;
|
||||||
rb_thread_t *th = GET_THREAD();
|
rb_thread_t *th = ruby_thread_from_native();
|
||||||
blocking_region_end(th, region);
|
blocking_region_end(th, region);
|
||||||
xfree(region);
|
xfree(region);
|
||||||
RUBY_VM_CHECK_INTS_BLOCKING(th);
|
RUBY_VM_CHECK_INTS_BLOCKING(th);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user