Project

General

Profile

« Previous | Next » 

Revision 82ab1e18

Added by naruse (Yui NARUSE) about 12 years ago

  • 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