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

Avoid excessive stack operations for cpu query.

This commit is contained in:
Bartosz Taudul
2017-10-10 23:21:30 +02:00
parent 75457c1465
commit cc8b357f09
5 changed files with 18 additions and 20 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ public:
tracy_force_inline void lock()
{
int8_t cpu;
uint32_t cpu;
const auto thread = GetThreadHandle();
{
Magic magic;
@@ -63,7 +63,7 @@ public:
{
m_lockable.unlock();
int8_t cpu;
uint32_t cpu;
Magic magic;
auto& token = s_token;
auto item = s_queue.enqueue_begin( token, magic );
@@ -79,7 +79,7 @@ public:
const auto ret = m_lockable.try_lock();
if( ret )
{
int8_t cpu;
uint32_t cpu;
Magic magic;
auto& token = s_token;
auto item = s_queue.enqueue_begin( token, magic );