mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +00:00
Keep ring buffer size unsigned.
This commit is contained in:
parent
81ae7c06b8
commit
7f10265e34
@ -6,7 +6,7 @@ namespace tracy
|
|||||||
class RingBuffer
|
class RingBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RingBuffer( int size, int fd, int id, int cpu = -1 )
|
RingBuffer( unsigned int size, int fd, int id, int cpu = -1 )
|
||||||
: m_size( size )
|
: m_size( size )
|
||||||
, m_id( id )
|
, m_id( id )
|
||||||
, m_cpu( cpu )
|
, m_cpu( cpu )
|
||||||
@ -117,7 +117,7 @@ private:
|
|||||||
std::atomic_store_explicit( (volatile std::atomic<uint64_t>*)&m_metadata->data_tail, m_tail, std::memory_order_release );
|
std::atomic_store_explicit( (volatile std::atomic<uint64_t>*)&m_metadata->data_tail, m_tail, std::memory_order_release );
|
||||||
}
|
}
|
||||||
|
|
||||||
int m_size;
|
unsigned int m_size;
|
||||||
uint64_t m_tail;
|
uint64_t m_tail;
|
||||||
char* m_buffer;
|
char* m_buffer;
|
||||||
int m_id;
|
int m_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user