MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / Close

Method Close

modules/core/profile/internal/tracy/common/TracySocket.cpp:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void Socket::Close()
266{
267 const auto sock = m_sock.load( std::memory_order_relaxed );
268 assert( sock != -1 );
269#ifdef _WIN32
270 closesocket( sock );
271#else
272 close( sock );
273#endif
274 m_sock.store( -1, std::memory_order_relaxed );
275}
276
277int Socket::Send( const void* _buf, int len )
278{

Callers

nothing calls this directly

Calls 3

closesocketFunction · 0.50
loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected