MCPcopy Create free account
hub / github.com/apache/impala / AddThreadAvailableCb

Method AddThreadAvailableCb

be/src/runtime/thread-resource-mgr.cc:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75int ThreadResourcePool::AddThreadAvailableCb(ThreadAvailableCb fn) {
76 unique_lock<mutex> l(lock_);
77 // The id is unique for each callback and is monotonically increasing.
78 int id = thread_callbacks_.size();
79 thread_callbacks_.emplace_back(move(fn));
80 num_callbacks_.Add(1);
81 return id;
82}
83
84void ThreadResourcePool::RemoveThreadAvailableCb(int id) {
85 unique_lock<mutex> l(lock_);

Callers 3

OpenMethod · 0.80
OpenMethod · 0.80
TESTFunction · 0.80

Calls 3

moveFunction · 0.85
sizeMethod · 0.45
AddMethod · 0.45

Tested by 1

TESTFunction · 0.64