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

Split data handling code from the view.

This commit is contained in:
Bartosz Szreder
2018-02-13 14:57:47 +01:00
parent fbaf59c9a6
commit 9e3f18a62a
11 changed files with 2214 additions and 2099 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ int Socket::Recv( void* _buf, int len, const timeval* tv )
}
}
bool Socket::Read( void* _buf, int len, const timeval* tv, bool(*exitCb)() )
bool Socket::Read( void* _buf, int len, const timeval* tv, std::function< bool() > exitCb )
{
auto buf = (char*)_buf;
+3 -1
View File
@@ -1,6 +1,8 @@
#ifndef __TRACYSOCKET_HPP__
#define __TRACYSOCKET_HPP__
#include <functional>
struct timeval;
namespace tracy
@@ -19,7 +21,7 @@ public:
int Send( const void* buf, int len );
int Recv( void* buf, int len, const timeval* tv );
bool Read( void* buf, int len, const timeval* tv, bool(*exitCb)() );
bool Read( void* buf, int len, const timeval* tv, std::function< bool() > exitCb );
bool HasData();
Socket( const Socket& ) = delete;