[#71439] [Ruby trunk - Feature #11339] [PATCH] io.c: avoid kwarg parsing in C API — matz@...
Issue #11339 has been updated by Yukihiro Matsumoto.
7 messages
2015/11/11
[#71473] Re: [Ruby trunk - Feature #11339] [PATCH] io.c: avoid kwarg parsing in C API
— Eric Wong <normalperson@...>
2015/11/13
Entire series for sockets
[#71450] Ruby 2.3.0-preview1 Released — "NARUSE, Yui" <naruse@...>
Hi,
5 messages
2015/11/11
[#71617] [Ruby trunk - Feature #11664] [PATCH] introduce rb_autoload_value to replace rb_autoload — nobu@...
Issue #11664 has been updated by Nobuyoshi Nakada.
3 messages
2015/11/20
[#71721] [Ruby trunk - Feature #11741] Migrate Ruby to Git from Subversion — me@...
Issue #11741 has been updated by Jon Moss.
4 messages
2015/11/28
[ruby-core:71290] [Ruby trunk - Bug #11642] [Rejected] Thread List Example - Wrong Output
From:
nobu@...
Date:
2015-11-01 00:44:02 UTC
List:
ruby-core #71290
Issue #11642 has been updated by Nobuyoshi Nakada.
Description updated
Status changed from Open to Rejected
Just depends on the time the second thread needs.
----------------------------------------
Bug #11642: Thread List Example - Wrong Output
https://bugs.ruby-lang.org/issues/11642#change-54665
* Author: Stefan Schulz
* Status: Rejected
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
http://ruby-doc.org/core-1.9.3/Thread.html
list → array click to toggle source
Returns an array of Thread objects for all threads that are either runnable or stopped.
~~~ruby
Thread.new { sleep(200) }
Thread.new { 1000000.times {|i| i*i } }
Thread.new { Thread.stop }
Thread.list.each {|t| p t}
~~~
produces:
WRONG:
~~~
<Thread:0x401b3e84 sleep>
<Thread:0x401b3f38 run>
<Thread:0x401b3fb0 sleep>
<Thread:0x401bdf4c run>
~~~
RIGHT:
~~~
<Thread:0x00000000983c30 run>
<Thread:0x00000000961ef0 sleep>
<Thread:0x00000000961d88 dead>
<Thread:0x00000000961c48 sleep>
~~~
--
https://bugs.ruby-lang.org/