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

Remove one stack address load.

This commit is contained in:
Bartosz Taudul
2017-10-11 01:27:22 +02:00
parent af3773dc9a
commit 77dfefb5d0
5 changed files with 32 additions and 27 deletions
+2 -1
View File
@@ -70,10 +70,11 @@ public:
uint32_t cpu;
Magic magic;
auto& token = s_token;
auto& tail = token->get_tail_index();
auto item = token->enqueue_begin<moodycamel::CanAlloc>( magic );
item->hdr.type = QueueType::FrameMarkMsg;
item->frameMark.time = GetTime( cpu );
token->enqueue_finish( magic );
tail.store( magic + 1, std::memory_order_release );
}
static bool ShouldExit();