1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Socket::ReadUpTo() doesn't support timeouts.

This commit is contained in:
Bartosz Taudul
2023-04-16 12:19:48 +02:00
parent 72dfab80f8
commit 778d0cb3fb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ int Socket::Recv( void* _buf, int len, int timeout )
}
}
int Socket::ReadUpTo( void* _buf, int len, int timeout )
int Socket::ReadUpTo( void* _buf, int len )
{
const auto sock = m_sock.load( std::memory_order_relaxed );
auto buf = (char*)_buf;
+1 -1
View File
@@ -29,7 +29,7 @@ public:
int Send( const void* buf, int len );
int GetSendBufSize();
int ReadUpTo( void* buf, int len, int timeout );
int ReadUpTo( void* buf, int len );
bool Read( void* buf, int len, int timeout );
template<typename ShouldExit>