| 202 | thread_cond cond_; |
| 203 | |
| 204 | T* peek(bool& found_flag) { |
| 205 | typename std::list<T*>::iterator it = tbox_.begin(); |
| 206 | if (it == tbox_.end()) { |
| 207 | found_flag = false; |
| 208 | return NULL; |
| 209 | } |
| 210 | found_flag = true; |
| 211 | size_--; |
| 212 | T* t = *it; |
| 213 | tbox_.erase(it); |
| 214 | return t; |
| 215 | } |
| 216 | }; |
| 217 | |
| 218 | } // namespace acl |