Project

General

Profile

« Previous | Next » 

Revision 38087

  • lib/thread.rb (SizedQueue#pop): rewrite by using ConditionVariable.
  • lib/thread.rb (SizedQueue#push): ditto.
  • lib/thread.rb (SizedQueue#max): ditto.
  • lib/thread.rb (Queue#pop): ditto.
  • lib/thread.rb (Queue#push): ditto.

  • lib/thread.rb (SizedQueue#num_waiting): adopt the above changes.

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

  • lib/thread.rb (Queue#num_waiting): ditto.

  • lib/thread.rb (Queue#initialize): ditto.

  • test/thread/test_queue.rb (test_sized_queue_and_wakeup): ditto.