Project

General

Profile

Actions

Bug #1402

closed

test_cookie(TestCookie)でtest-allが止まる

Added by znz (Kazuhiro NISHIYAMA) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.8dev (2009-04-22 revision 23257) [i686-linux]
[ruby-dev:38319]

Description

=begin
http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8-pth/last
のように ruby 1.8.8dev で --enable-pthread の場合に止まります。

挙動から推測すると、while修飾子の左がリテラルだとスレッドが
切り替わっていないような気がします。

% cat t.rb
require 'timeout'
@flag = true
Thread.start {
sleep 0.1
@flag = false
}
Timeout.timeout(1) {
nil while @flag
}
% ruby18 -vd t.rb
ruby 1.8.8dev (2009-04-22 revision 23257) [i686-linux]
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #270: lazy timer thraed creationClosedko1 (Koichi Sasada)Actions
Actions

Also available in: Atom PDF

Like0
Like0