Project

General

Profile

« Previous | Next » 

Revision 7198053a

Added by kosaki (Motohiro KOSAKI) over 11 years ago

  • lib/thread.rb (Queue#pop): Fixed double registration issue when
    mutex.sleep is interrupted. [Bug #5258] [ruby-dev:44448]

  • lib/thread.rb (SizedQueue#push): ditto.

  • test/thread/test_queue.rb (test_sized_queue_and_wakeup,
    test_queue_pop_interrupt, test_sized_queue_pop_interrupt,
    test_sized_queue_push_interrupt): new tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e