Issue #8919 has been updated by Masaki Matsushita.

File patch.diff added

How about the implementation in attached patch.diff?

----------------------------------------
Feature #8919: Queue as embedded class
https://bugs.ruby-lang.org/issues/8919#change-50116

* Author: Koichi Sasada
* Status: Assigned
* Priority: Normal
* Assignee: Koichi Sasada
* Category: core
* Target version: current: 2.2.0
----------------------------------------
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.


---Files--------------------------------
patch.diff (15.7 KB)


-- 
https://bugs.ruby-lang.org/