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

Wait for send buffer to be full before sending data.

This commit is contained in:
Bartosz Taudul
2017-11-11 14:16:37 +01:00
parent 35391d08f1
commit fc4e31bb8f
2 changed files with 44 additions and 34 deletions
+3
View File
@@ -186,6 +186,8 @@ private:
void Worker();
DequeueStatus Dequeue( moodycamel::ConsumerToken& token );
bool AppendData( const void* data, size_t len );
bool CommitData();
bool SendData( const char* data, size_t len );
bool SendString( uint64_t ptr, const char* str, QueueType type );
@@ -209,6 +211,7 @@ private:
LZ4_stream_t* m_stream;
char* m_buffer;
int m_bufferOffset;
int m_bufferStart;
QueueItem* m_itemBuf;
char* m_lz4Buf;