MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / HasData

Method HasData

Dependencies/tracy/common/TracySocket.cpp:423–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423bool Socket::HasData()
424{
425 const auto sock = m_sock.load( std::memory_order_relaxed );
426 if( m_bufLeft > 0 ) return true;
427
428 struct pollfd fd;
429 fd.fd = (socket_t)sock;
430 fd.events = POLLIN;
431
432 return poll( &fd, 1, 0 ) > 0;
433}
434
435bool Socket::IsValid() const
436{

Callers 2

WorkerMethod · 0.80
HandleDisconnectMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected