Class: ModSpox::Pool
- Inherits:
-
Object
- Object
- ModSpox::Pool
- Defined in:
- lib/mod_spox/Pool.rb
Overview
The Pool class is used to reduce thread creation. It provides an easy way to process many actions in an asynchronous manner.
Direct Known Subclasses
Defined Under Namespace
Classes: PoolQueue
Instance Attribute Summary collapse
-
#proc ⇒ Object
readonly
Action thread is to perform.
-
#queue ⇒ Object
readonly
Storage space that the pool will be processing.
Instance Method Summary collapse
-
#destroy ⇒ Object
Destroys this pool.
-
#initialize ⇒ Pool
constructor
Create a new pool.
-
#start_pool ⇒ Object
Starts the pool.
Constructor Details
Instance Attribute Details
#proc ⇒ Object (readonly)
Action thread is to perform
13 14 15 |
# File 'lib/mod_spox/Pool.rb', line 13 def proc @proc end |
#queue ⇒ Object (readonly)
Storage space that the pool will be processing
15 16 17 |
# File 'lib/mod_spox/Pool.rb', line 15 def queue @queue end |