mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
stop doubling timeout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8ca5dc0d14
commit
e7e5e1a510
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Feb 17 00:38:10 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* lib/rinda/tuplespace.rb: TupleSpace#initialize, stop doubling timeout
|
||||||
|
|
||||||
Tue Feb 17 00:18:03 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
Tue Feb 17 00:18:03 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
* test/rinda/test_rinda.rb: import test_rinda.rb
|
* test/rinda/test_rinda.rb: import test_rinda.rb
|
||||||
|
|
|
@ -277,14 +277,13 @@ module Rinda
|
||||||
class TupleSpace
|
class TupleSpace
|
||||||
include DRbUndumped
|
include DRbUndumped
|
||||||
include MonitorMixin
|
include MonitorMixin
|
||||||
def initialize(timeout=60)
|
def initialize(period=60)
|
||||||
super()
|
super()
|
||||||
@bag = TupleBag.new
|
@bag = TupleBag.new
|
||||||
@read_waiter = TupleBag.new
|
@read_waiter = TupleBag.new
|
||||||
@take_waiter = TupleBag.new
|
@take_waiter = TupleBag.new
|
||||||
@notify_waiter = TupleBag.new
|
@notify_waiter = TupleBag.new
|
||||||
@timeout = timeout
|
@period = period
|
||||||
@period = timeout * 2
|
|
||||||
@keeper = keeper
|
@keeper = keeper
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue