exoticfizz.net
ruby fizz > ResourcePool

ResourcePool

A generalized resource pool with resource allocation/deallocation based around the Ruby block.

Sample Usage

    ResourcePool.create('newpool', 2, PoolObject)

    # ...

    pool = ResourcePool.instance('newpool')
    pool.obtain do |r|
        # do something with r
    end

Documentation

For documentation, run RDoc after unpacking the archive.

License

ResourcePool may be used and distributed under the same license as Ruby.

Download Latest Version (v. 0.1)

Download the source code


Copyright © 2002 Henry So, Jr. All Rights Reserved.
e-mail: henryso at panix dot com