From 42807160cfb33af9f3cf2fa6b0ba98f232208cdb Mon Sep 17 00:00:00 2001 From: AlexApps99 Date: Mon, 26 Jul 2021 21:58:51 +1200 Subject: Add #ifdef declarations for NON_MATCHING code --- src/KingSystem/Utils/Thread/TaskQueueBase.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/KingSystem/Utils/Thread/TaskQueueBase.cpp') diff --git a/src/KingSystem/Utils/Thread/TaskQueueBase.cpp b/src/KingSystem/Utils/Thread/TaskQueueBase.cpp index 49e91f24..8c220ebb 100644 --- a/src/KingSystem/Utils/Thread/TaskQueueBase.cpp +++ b/src/KingSystem/Utils/Thread/TaskQueueBase.cpp @@ -234,7 +234,8 @@ void TaskQueueBase::blockTasks(u8 id) { mLanes[id].blocked = true; } -// NON_MATCHING: the while (!areAllThreadsPaused()) loop generates weird code in the original +// the while (!areAllThreadsPaused()) loop generates weird code in the original +#ifdef NON_MATCHING void TaskQueueBase::blockTasksAndReloadThreads(u8 id) { blockTasks(id); @@ -257,6 +258,7 @@ void TaskQueueBase::blockTasksAndReloadThreads(u8 id) { thread.resume(); } } +#endif void TaskQueueBase::unblockTasks(u8 id) { if (mLanes[id].blocked) { @@ -407,7 +409,8 @@ void TaskQueueBase::removeTask(Task* task, bool b) { unlock(); } -// NON_MATCHING: regalloc inside the task lambda + reorderings for the loop counters. +// regalloc inside the task lambda + reorderings for the loop counters. +#ifdef NON_MATCHING void TaskQueueBase::fetchTask(Task** out_task) { lock(); @@ -481,5 +484,6 @@ void TaskQueueBase::fetchTask(Task** out_task) { unlock(); } +#endif } // namespace ksys::util -- cgit v1.2.3