| 193 | thread_cond cond_; |
| 194 | |
| 195 | T* peek(bool& found_flag) { |
| 196 | typename std::list<T*>::iterator it = tbox_.begin(); |
| 197 | if (it == tbox_.end()) { |
| 198 | found_flag = false; |
| 199 | return NULL; |
| 200 | } |
| 201 | found_flag = true; |
| 202 | size_--; |
| 203 | T* t = *it; |
| 204 | tbox_.erase(it); |
| 205 | return t; |
| 206 | } |
| 207 | }; |
| 208 | |
| 209 | } // namespace acl |