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/ManagedTask.cpp | |
| parent | 88bcc9eec1481b47361dc717c83e4953e8929a2b (diff) | |
Add #ifdef declarations for NON_MATCHING code
Diffstat (limited to 'src/KingSystem/Utils/Thread/ManagedTask.cpp')
| -rw-r--r-- | src/KingSystem/Utils/Thread/ManagedTask.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KingSystem/Utils/Thread/ManagedTask.cpp b/src/KingSystem/Utils/Thread/ManagedTask.cpp index 8a0f3dfd..7018ed37 100644 --- a/src/KingSystem/Utils/Thread/ManagedTask.cpp +++ b/src/KingSystem/Utils/Thread/ManagedTask.cpp @@ -83,7 +83,8 @@ void ManagedTask::attachHandle(ManagedTaskHandle* handle, TaskQueueBase* queue) mHandle = handle; } -// NON_MATCHING: switch +// switch +#ifdef NON_MATCHING void ManagedTask::detachHandle() { TaskQueueLock lock; lock.lock(mQueue); @@ -102,5 +103,6 @@ void ManagedTask::detachHandle() { } } } +#endif } // namespace ksys::util |
