51 : sem_(0), size_(0), free_obj_(free_obj) {}
55 void clear(
bool free_obj =
false)
58 for (
typename std::list<T*>::iterator it =
59 sbox_.begin(); it != sbox_.end(); ++it) {
73 T*
pop(
bool* found = NULL)
77 T* t = peek(found_flag);
94 T* peek(
bool& found_flag)
96 typename std::list<T*>::iterator it = sbox_.begin();
97 if (it == sbox_.end()) {
T * pop(bool *found=NULL)
struct ACL_FIBER_SEM ACL_FIBER_SEM
void clear(bool free_obj=false)
fiber_sbox(bool free_obj=true)
fiber_sem_guard(fiber_sem &sem)