diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/ruby/intern.h | 4 | ||||
-rw-r--r-- | internal.h | 4 |
3 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Thu Jul 5 17:32:19 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * internal.h: move ThreadShield declarations from intern.h. + Thu Jul 5 16:00:24 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> * thread.c (ThreadShield): rename from Barrier. diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 30c11a180f..5328f2c080 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -835,10 +835,6 @@ VALUE rb_mutex_lock(VALUE mutex); VALUE rb_mutex_unlock(VALUE mutex); VALUE rb_mutex_sleep(VALUE self, VALUE timeout); VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg); -VALUE rb_thread_shield_new(void); -VALUE rb_thread_shield_wait(VALUE self); -VALUE rb_thread_shield_release(VALUE self); -VALUE rb_thread_shield_destroy(VALUE self); /* time.c */ VALUE rb_time_new(time_t, long); VALUE rb_time_nano_new(time_t, long); diff --git a/internal.h b/internal.h index 73c04ec889..b6ecc771f1 100644 --- a/internal.h +++ b/internal.h @@ -243,6 +243,10 @@ VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always); void rb_thread_execute_interrupts(VALUE th); void rb_clear_trace_func(void); VALUE rb_get_coverages(void); +VALUE rb_thread_shield_new(void); +VALUE rb_thread_shield_wait(VALUE self); +VALUE rb_thread_shield_release(VALUE self); +VALUE rb_thread_shield_destroy(VALUE self); /* thread_pthread.c, thread_win32.c */ void Init_native_thread(void); |