MCPcopy Create free account
hub / github.com/beefytech/Beef / LostConnection

Method LostConnection

BeefySysLib/util/BeefPerf.cpp:829–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829void BpManager::LostConnection()
830{
831 mCollectData = false;
832 AutoCrit autoCrit(mCritSect);
833 mRootCmdTarget.Disable();
834 for (auto threadInfo : mThreadInfos)
835 threadInfo->Disable();
836#ifdef BF_PLATFORM_WINDOWS
837 closesocket(mSocket);
838#else
839 close(mSocket);
840#endif
841 mSocket = INVALID_SOCKET;
842}
843
844BpThreadInfo* BpManager::SlowGetCurThreadInfo()
845{

Callers

nothing calls this directly

Calls 2

closeFunction · 0.50
DisableMethod · 0.45

Tested by

no test coverage detected