| 148 | } |
| 149 | |
| 150 | bool TryPop(void** ret) { |
| 151 | if (list_.empty()) { |
| 152 | return false; |
| 153 | } |
| 154 | |
| 155 | *ret = list_.back(); |
| 156 | list_.pop_back(); |
| 157 | return true; |
| 158 | } |
| 159 | |
| 160 | // PushBatch and PopBatch do not guarantee an ordering. |
| 161 | void PushBatch(int N, void** ptrs) { |