MCPcopy Create free account
hub / github.com/apache/brpc / push

Method push

src/bthread/remote_task_queue.h:61–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 bool push(bthread_t task) {
62 _mutex.lock();
63 const bool res = push_locked(task);
64 _mutex.unlock();
65 return res;
66 }
67
68 bool push_locked(bthread_t task) {
69 return _tasks.push(task);

Callers 1

push_lockedMethod · 0.45

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected