Class: Tournament::Pool::StatsProcess
- Inherits:
-
Object
- Object
- Tournament::Pool::StatsProcess
- Defined in:
- lib/tournament/pool.rb
Overview
Make a subprocess look like a thread
Instance Method Summary collapse
-
#initialize(pid) ⇒ StatsProcess
constructor
A new instance of StatsProcess.
- #join ⇒ Object
Constructor Details
#initialize(pid) ⇒ StatsProcess
Returns a new instance of StatsProcess.
847 848 849 |
# File 'lib/tournament/pool.rb', line 847 def initialize(pid) @pid = pid end |
Instance Method Details
#join ⇒ Object
850 851 852 |
# File 'lib/tournament/pool.rb', line 850 def join Process.waitpid @pid end |