MCPcopy Create free account
hub / github.com/IronsDu/brynet / tryInitThreadID

Method tryInitThreadID

include/brynet/net/EventLoop.hpp:432–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430 mTcpConnections.erase(fd);
431 }
432 void tryInitThreadID()
433 {
434 std::call_once(mOnceInitThreadID, [this]() {
435 mSelfThreadID = current_thread::tid();
436 mSelfThreadIDIsInitialized.store(true);
437 });
438 }
439
440private:
441#ifdef BRYNET_PLATFORM_WINDOWS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected