| 36 | } |
| 37 | |
| 38 | int bthread_queue_consume(void*, ::bthread::TaskIterator<Task>& iter) { |
| 39 | if (iter.is_queue_stopped()) { |
| 40 | return 0; |
| 41 | } |
| 42 | for (; iter; ++iter) { |
| 43 | latency << ::butil::monotonic_time_ns() - iter->begin; |
| 44 | pending << -1; |
| 45 | } |
| 46 | return 0; |
| 47 | } |
| 48 | |
| 49 | void babylon_queue_consume( |
| 50 | ::babylon::ConcurrentExecutionQueue<Task>::Iterator iter, |
nothing calls this directly
no outgoing calls
no test coverage detected