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