Added isLocked() to task mutex.
This commit is contained in:
@@ -37,6 +37,7 @@ public:
|
||||
locked_ = true;
|
||||
co_return TaskMutexLock(this);
|
||||
}
|
||||
[[nodiscard]] inline bool isLocked() const noexcept { return locked_; }
|
||||
|
||||
friend class TaskMutexLock;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user