Added isLocked() to task mutex.

This commit is contained in:
Patrick 2023-12-18 17:53:40 +01:00
parent 2668e69ae1
commit faf4489b92

View File

@ -37,6 +37,7 @@ public:
locked_ = true; locked_ = true;
co_return TaskMutexLock(this); co_return TaskMutexLock(this);
} }
[[nodiscard]] inline bool isLocked() const noexcept { return locked_; }
friend class TaskMutexLock; friend class TaskMutexLock;
}; };