diff options
| author | AlexApps99 <alex.apps99@gmail.com> | 2021-07-26 21:58:51 +1200 |
|---|---|---|
| committer | AlexApps99 <alex.apps99@gmail.com> | 2021-07-26 23:05:19 +1200 |
| commit | 42807160cfb33af9f3cf2fa6b0ba98f232208cdb (patch) | |
| tree | 95b1b16a3f4cf7d0ab51e90b3d73e53f74ba7f2b /src/KingSystem/Utils/Thread/TaskQueueBase.cpp | |
| parent | 88bcc9eec1481b47361dc717c83e4953e8929a2b (diff) | |
Add #ifdef declarations for NON_MATCHING code
Diffstat (limited to 'src/KingSystem/Utils/Thread/TaskQueueBase.cpp')
| -rw-r--r-- | src/KingSystem/Utils/Thread/TaskQueueBase.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
