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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user