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

Store socket handle in atomic.

This commit is contained in:
Bartosz Taudul
2020-05-13 19:12:52 +02:00
parent 7ea9c4baf2
commit 1fdae70cf8
2 changed files with 22 additions and 16 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
#ifndef __TRACYSOCKET_HPP__
#define __TRACYSOCKET_HPP__
#include <atomic>
#include <stdint.h>
#include "TracyForceInline.hpp"
@@ -58,7 +59,7 @@ private:
char* m_buf;
char* m_bufPtr;
int m_sock;
std::atomic<int> m_sock;
int m_bufLeft;
};