Changeset 192
- Timestamp:
- 06/03/06 15:30:57 (2 years ago)
- Files:
-
- experiments/NewMachine/lib/machine/reactor.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
experiments/NewMachine/lib/machine/reactor.rb
r190 r192 65 65 # break out of the iterate loop in pathological cases, after a certain 66 66 # number of events are processed. 67 # 68 # It's possible for this method to be called on the reactor from 69 # user code. Not sure how useful it is, but it's in the unit tests. 70 # Problem is that we need to set @running when we start, otherwise 71 # the iterate loop won't complete. (This is not needed when calling 72 # #iterate from #run, which sets @running before calling us.) 73 # There's something a little messy about this, may want to rethink. 67 74 def iterate 68 75 log.debug "iterating #{@dispatchers.size} dispatchers..." 76 @running = true 69 77 @dispatchers.each {|d| d.iterate if running?} 70 78 #@signalled = false
