pool.rb

Path: lib/more/facets/pool.rb
Last Update: Mon Jun 01 21:54:17 -0400 2009

Pool

Generalized object pool implementation. Implemented as a thread safe stack. Exclusive locking is needed both for push and pop.

Author

  • George Moschovitis

Todo

  • Could use the SizedQueue/Queue?

Copying

Copyright (c) 2004 George Moschovitis

Ruby License

This module is free software. You may use, modify, and/or redistribute this software under the same terms as Ruby.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Required files

thread   monitor  

[Validate]