MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / test_async_lock_unlock

Method test_async_lock_unlock

test/source/tests/async_lock_tests.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void concurrencpp::tests::test_async_lock_unlock() {
151 // unlocking an un-owned lock throws
152 assert_throws_contains_error_message<std::system_error>(
153 [] {
154 async_lock lock;
155 lock.unlock();
156 },
157 concurrencpp::details::consts::k_async_lock_unlock_invalid_lock_err_msg);
158
159 test_async_lock_unlock_resumption_fails();
160}
161
162void concurrencpp::tests::test_async_lock_mini_load_test1() {
163 async_lock mtx;

Callers

nothing calls this directly

Calls 1

unlockMethod · 0.80

Tested by

no test coverage detected