class BBS::AI::Semaphore

A counting semaphore: at most a given number of holders at once, the others wait their turn for a while.