summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 11:10:24 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 11:10:24 +0000
commit212150c2e148278b1a300bd823f0a3d4753cd37d (patch)
tree8ce80d70f0ac47441fdb0f2147e99541b5efb786 /vm_core.h
parent0a2da327f46ec0e129de52f668d00f04f2529b7e (diff)
* thread.c, vm_core.h: big rename th to cur_th when works only
th is current thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/vm_core.h b/vm_core.h
index dd9e3872e2..1775ed4fd2 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -874,15 +874,15 @@ int rb_threadptr_async_errinfo_active_p(rb_thread_t *th);
void rb_thread_lock_unlock(rb_thread_lock_t *);
void rb_thread_lock_destroy(rb_thread_lock_t *);
-#define RUBY_VM_CHECK_INTS_BLOCKING(th) do { \
- if (UNLIKELY((th)->interrupt_flag)) { \
- rb_threadptr_execute_interrupts(th, 1); \
+#define RUBY_VM_CHECK_INTS_BLOCKING(cur_th) do { \
+ if (UNLIKELY((cur_th)->interrupt_flag)) { \
+ rb_threadptr_execute_interrupts(cur_th, 1); \
} \
} while (0)
-#define RUBY_VM_CHECK_INTS(th) do { \
- if (UNLIKELY((th)->interrupt_flag)) { \
- rb_threadptr_execute_interrupts(th, 0); \
+#define RUBY_VM_CHECK_INTS(cur_th) do { \
+ if (UNLIKELY((cur_th)->interrupt_flag)) { \
+ rb_threadptr_execute_interrupts(cur_th, 0); \
} \
} while (0)