MCPcopy Create free account
hub / github.com/Qihoo360/evpp / OnWorkingThread

Function OnWorkingThread

test/event_loop_thread_pool_test.cc:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15static std::set<std::thread::id> g_working_tids;
16
17static void OnWorkingThread() {
18 static std::mutex mutex;
19 std::lock_guard<std::mutex> g(mutex);
20 g_working_tids.insert(std::this_thread::get_id());
21}
22
23
24static std::atomic<int> g_count;

Callers 1

OnCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected