Like a smaller, lamer thread pool.
Creates a new ThreadPuddle object, with a fixed capacity.
Retrieves the ThreadPuddle object's capacity.
Number of threads currently occupying the puddle.
Blocks execution of the calling thread until there's a free slot in the puddle.
WARNING: there is no guarantee this will ever return.
Spawns a new thread in the puddle.
If the puddle is full, this call blocks.
@yields *args
@see ThreadPuddle#block
@return the new Thread object
Waits for all threads in the puddle to join.
@return this ThreadPuddle object
Kills all threads in the puddle.
@return the number of threads killed