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

Allow queuing zones.

This commit is contained in:
Bartosz Taudul
2017-09-10 20:09:14 +02:00
parent 05486c8225
commit 12a6306c0b
2 changed files with 21 additions and 0 deletions
+7
View File
@@ -5,6 +5,9 @@
#include <stdint.h>
#include <thread>
#include "concurrentqueue.h"
#include "TracyQueue.hpp"
namespace tracy
{
@@ -16,11 +19,15 @@ public:
static uint64_t GetNewId();
static void ZoneBegin( QueueZoneBegin&& data );
static void ZoneEnd( QueueZoneEnd&& data );
private:
void Worker();
std::thread m_thread;
std::atomic<bool> m_shutdown;
moodycamel::ConcurrentQueue<QueueItem> m_queue;
std::atomic<uint64_t> m_id;
};