MCPcopy Create free account
hub / github.com/alibaba/async_simple / getCurrentId

Method getCurrentId

async_simple/util/ThreadPool.h:210–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210inline int32_t ThreadPool::getCurrentId() const {
211 auto current = getCurrent();
212 if (this == current->second) {
213 return current->first;
214 }
215 return -1;
216}
217
218inline size_t ThreadPool::getItemCount() const {
219 size_t ret = 0;

Callers 6

currentContextIdMethod · 0.80
checkoutMethod · 0.80
checkinMethod · 0.80
TEST_FFunction · 0.80
TestBasicFunction · 0.80

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.64
TestBasicFunction · 0.64