MCPcopy Create free account
hub / github.com/apache/incubator-pegasus / decrease_count

Method decrease_count

src/runtime/task/task_queue.h:72–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71 int count() const { return _queue_length.load(std::memory_order_relaxed); }
72 int decrease_count(int count = 1)
73 {
74 _queue_length_counter->add((int64_t)(-count));
75 return _queue_length.fetch_sub(count, std::memory_order_relaxed) - count;
76 }
77 int increase_count(int count = 1)
78 {
79 _queue_length_counter->add(count);

Callers 1

loopMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected