* lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated
threads should be also processed. [ruby-talk:121320] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e37ee5af1
commit
0247fbae3d
@ -1,3 +1,8 @@
|
|||||||
|
Thu Nov 25 20:14:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated
|
||||||
|
threads should be also processed. [ruby-talk:121320]
|
||||||
|
|
||||||
Thu Nov 25 18:06:37 2004 Tanaka Akira <akr@m17n.org>
|
Thu Nov 25 18:06:37 2004 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* configure.in: AC_CHECK_SIZEOF(rlim_t) to include stdio.h to fix
|
* configure.in: AC_CHECK_SIZEOF(rlim_t) to include stdio.h to fix
|
||||||
|
@ -117,11 +117,14 @@ class ThreadsWait
|
|||||||
@threads.concat threads
|
@threads.concat threads
|
||||||
for th in threads
|
for th in threads
|
||||||
Thread.start(th) do |t|
|
Thread.start(th) do |t|
|
||||||
|
begin
|
||||||
t.join
|
t.join
|
||||||
|
ensure
|
||||||
@wait_queue.push t
|
@wait_queue.push t
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Waits until any of the specified threads has terminated, and returns the one
|
# Waits until any of the specified threads has terminated, and returns the one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user