Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanups for condition_variable's waiting functions #3974

Merged
Prev Previous commit
Next Next commit
format
achabense committed Sep 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 6673cc1ad181f304fdadbd6938267f4eae34cf5f
3 changes: 2 additions & 1 deletion stl/inc/mutex
Original file line number Diff line number Diff line change
@@ -589,7 +589,8 @@ public:
static_assert(chrono::is_clock_v<_Clock>, "Clock type required");
#endif // _HAS_CXX20
#if _CONTAINER_DEBUG_LEVEL > 0
_STL_VERIFY(_Lck.owns_lock(), "wait_until's caller must own the lock argument (N4958 [thread.condition.condvar]/17)");
_STL_VERIFY(
_Lck.owns_lock(), "wait_until's caller must own the lock argument (N4958 [thread.condition.condvar]/17)");
_STL_VERIFY(_Mtx_current_owns(_Lck.mutex()->_Mymtx()),
"wait_until's calling thread must hold the lock argument's mutex (N4958 [thread.condition.condvar]/17)");
#endif // _CONTAINER_DEBUG_LEVEL > 0