summaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-30 01:52:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-30 01:52:38 +0000
commit060ae1e90cd6b54d4c9c7b2c04ab033e700ed615 (patch)
treed686c70e7069ec3e2eb23bad3c40a418b39b2505 /thread_win32.c
parentf702cab822d026f3a314e62d6b1bde3a31427b7c (diff)
downloadruby-060ae1e90cd6b54d4c9c7b2c04ab033e700ed615.tar.gz
ruby-060ae1e90cd6b54d4c9c7b2c04ab033e700ed615.tar.xz
ruby-060ae1e90cd6b54d4c9c7b2c04ab033e700ed615.zip
* vm_core.h (struct rb_unblock_callback), thread.c
(set_unblock_function), thread_{pthread,win32}.c (native_sleep): extracted from struct rb_thread_struct. * thread.c (reset_unblock_function): not check interrupts at leaving blocking region. [ruby-dev:34874] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/thread_win32.c b/thread_win32.c
index a83ede0b9..63425511c 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -220,8 +220,8 @@ native_sleep(rb_thread_t *th, struct timeval *tv)
int status = th->status;
th->status = THREAD_STOPPED;
- th->unblock_function = ubf_handle;
- th->unblock_function_arg = th;
+ th->unblock.func = ubf_handle;
+ th->unblock.arg = th;
if (RUBY_VM_INTERRUPTED(th)) {
/* interrupted. return immediate */
@@ -232,8 +232,8 @@ native_sleep(rb_thread_t *th, struct timeval *tv)
thread_debug("native_sleep done (%lu)\n", ret);
}
- th->unblock_function = 0;
- th->unblock_function_arg = 0;
+ th->unblock.func = 0;
+ th->unblock.arg = 0;
th->status = status;
}
GVL_UNLOCK_END();