Queue as embedded class
Queue class in lib/thread.rb (ext/thread/thread.c from Ruby 2.1) is easy and safe way to communicate between threads.
How about to include Queue class as embedded class to elaborate using Queue?
This proposal is not include ConditionVariable and SizedQueue.
#6 Updated by Koichi Sasada 8 months ago
Now, thread.rb is required from rubygems.
$ ./ruby -ve 'p Queue' ruby 2.2.0dev (2014-11-20 trunk 48507) [x86_64-linux] Thread::Queue
$ ./ruby --disable-gems -ve 'p Queue' ruby 2.2.0dev (2014-11-20 trunk 48507) [x86_64-linux] -e:1:in `<main>': uninitialized constant Queue (NameError)
What should we do?