diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-30 22:25:16 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-30 22:25:16 +0000 |
commit | 82ab1e189b7761c6e871176a2dcff3a867940270 (patch) | |
tree | ca7cb2e0ab06aeb369a3b2270bd3442a1fecdf77 /internal.h | |
parent | 035e4949c5f3c1dda9a9bf31db3f29201d70a25f (diff) | |
download | ruby-82ab1e189b7761c6e871176a2dcff3a867940270.tar.gz |
* thread.c (rb_barrier_waiting): save the number of waiting threads
in RBASIC()->flags. [ruby-dev:45002] [Bug #5768]
* thread.c (rb_barrier_wait): increment and decrement around
rb_mutex_lock, and use rb_barrier_waiting().
* thread.c (rb_barrier_release): use rb_barrier_waiting().
* thread.c (rb_barrier_destroy): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal.h b/internal.h index b45b401c6f..cf3fec20b5 100644 --- a/internal.h +++ b/internal.h @@ -181,7 +181,6 @@ void rb_thread_execute_interrupts(VALUE th); void rb_clear_trace_func(void); VALUE rb_thread_backtrace(VALUE thval); VALUE rb_get_coverages(void); -int rb_barrier_waiting(VALUE barrier); /* thread_pthread.c, thread_win32.c */ void Init_native_thread(void); |