#include <it_bus_pdk/simple_pool.h>
Definition at line 16 of file simple_pool.h.
Public Member Functions | |
SimplePool (TFactory &factory) | |
Constructor. | |
virtual | ~SimplePool () |
Destructor. | |
T * | get_pool_entry () throw ((Exception)) |
Method used to get an entry from the pool. | |
void | return_pool_entry (T *) throw ((Exception)) |
Method used to return an object back to the pool. |
|
Constructor.
|
|
Destructor.
|
|
Method used to get an entry from the pool. This will call TCreate::new_instance if there are no free entries in the pool. This will throw Exception if TFactory::new_instance creates a null object
|
|
Method used to return an object back to the pool. It will throw an exception if that object was not obtained from the pool.
|