From 0a5e412541937ead88377cabdb565ecfe65c0afc Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 15 Feb 2024 11:18:17 +0100 Subject: Give all threads specific thread roles and assert thread safety --- src/Compute/Queue.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Compute/Queue.hpp') diff --git a/src/Compute/Queue.hpp b/src/Compute/Queue.hpp index 799df73..3c4ec08 100644 --- a/src/Compute/Queue.hpp +++ b/src/Compute/Queue.hpp @@ -1,6 +1,7 @@ #pragma once #include "../Common/Sizes.hpp" +#include "../ThreadRole.hpp" #include #include #include @@ -107,6 +108,8 @@ private: [[noreturn]] static void run_thread(std::shared_ptr control) { using namespace std::chrono_literals; + HELLO_I_AM(ThreadRole::Worker); + while (true) { Bool nothing_to_do = true; Job job; -- cgit 1.4.1