remove thread mutex from async_mutex

Summary: also fixes per-operation-cancelled operations preventing unlock of mutex

Reviewers: ivica

Reviewed By: ivica

Subscribers: korina, miljen

Differential Revision: https://repo.mireo.local/D32427
This commit is contained in:
Bruno Iljazovic
2024-11-27 13:28:31 +01:00
parent 944de413a3
commit 9240c51b28
3 changed files with 11 additions and 89 deletions

View File

@@ -90,6 +90,7 @@ BOOST_AUTO_TEST_CASE(bind_executor) {
tp.wait();
BOOST_TEST(handlers_called == expected_handlers_called);
BOOST_TEST(!mutex.is_locked());
}
BOOST_AUTO_TEST_CASE(per_op_cancellation) {
@@ -124,6 +125,7 @@ BOOST_AUTO_TEST_CASE(per_op_cancellation) {
ioc.run();
BOOST_TEST(handlers_called == expected_handlers_called);
BOOST_TEST(!mutex.is_locked());
}
BOOST_AUTO_TEST_CASE(cancel_ops_by_destructor) {
@@ -180,6 +182,7 @@ BOOST_AUTO_TEST_CASE(cancel_ops) {
mutex.cancel();
ioc.run();
BOOST_TEST(handlers_called == expected_handlers_called);
BOOST_TEST(!mutex.is_locked());
}
BOOST_AUTO_TEST_SUITE_END()