summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 11:04:39 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 11:04:39 +0000
commit7643e4604bc5a661d10c7940b948ae6c66694f09 (patch)
tree3a8ae65889650e9f2447cecb1258e24b55c34ff4 /thread.c
parent6d9f7672dd0560478c0031953a3cc8bd5cd05dd9 (diff)
* thread.c (rb_threadptr_execute_interrupts) removed.
* thread.c (rb_threadptr_execute_interrupts_common) renamed to rb_threadptr_execute_interrupts. I.e. unified rb_threadptr_execute_interrupts and rb_threadptr_execute_interrupts_common. * thread.c (rb_thread_schedule, rb_thread_execute_interrupts) s/_common//. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/thread.c b/thread.c
index bf5cb9be61..1a37b2873a 100644
--- a/thread.c
+++ b/thread.c
@@ -1012,8 +1012,6 @@ rb_thread_sleep(int sec)
rb_thread_wait_for(rb_time_timeval(INT2FIX(sec)));
}
-static void rb_threadptr_execute_interrupts_common(rb_thread_t *, int blocking);
-
static void
rb_thread_schedule_limits(unsigned long limits_us)
{
@@ -1039,7 +1037,7 @@ rb_thread_schedule(void)
rb_thread_schedule_limits(0);
if (UNLIKELY(GET_THREAD()->interrupt_flag)) {
- rb_threadptr_execute_interrupts_common(GET_THREAD(), 0);
+ rb_threadptr_execute_interrupts(GET_THREAD(), 0);
}
}
@@ -1696,8 +1694,8 @@ rb_threadptr_to_kill(rb_thread_t *th)
TH_JUMP_TAG(th, TAG_FATAL);
}
-static void
-rb_threadptr_execute_interrupts_common(rb_thread_t *th, int blocking_timing)
+void
+rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing)
{
rb_atomic_t interrupt;
@@ -1759,17 +1757,11 @@ rb_threadptr_execute_interrupts_common(rb_thread_t *th, int blocking_timing)
}
void
-rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing)
-{
- rb_threadptr_execute_interrupts_common(th, blocking_timing);
-}
-
-void
rb_thread_execute_interrupts(VALUE thval)
{
rb_thread_t *th;
GetThreadPtr(thval, th);
- rb_threadptr_execute_interrupts_common(th, 1);
+ rb_threadptr_execute_interrupts(th, 1);
}
static void