| 89 | |
| 90 | template <typename Queue> |
| 91 | void ConsumerThread(Queue* queue) { |
| 92 | unique_ptr<InboundCall> call; |
| 93 | while (queue->BlockingGet(&call)) { |
| 94 | inprogress--; |
| 95 | total++; |
| 96 | call.reset(); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | TEST(TestServiceQueue, LifoServiceQueuePerf) { |
| 101 | LifoServiceQueue queue(FLAGS_max_queue_size); |
nothing calls this directly
no test coverage detected