Issue #8919 has been updated by Koichi Sasada.


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
```

and

```
$ ./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?


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

* 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/