epee: syncobj: replace shims with Boost classes

a. `critical_section` is functionally identical to a `boost::recursive_mutex`
b. `critical_region_t` is functionally identical to a `boost::unique_lock`
c. remove some vestigial definitons `g_test_dbg_lock_sleep` as a variable
This commit is contained in:
jeffro256 2025-04-01 10:14:28 -05:00
parent 977dedce2c
commit 8af33c71cf
No known key found for this signature in database
GPG key ID: 6F79797A6E392442
5 changed files with 5 additions and 85 deletions

View file

@ -495,7 +495,7 @@ public:
if(is_response)
{//response to some invoke
epee::critical_region_t<decltype(m_invoke_response_handlers_lock)> invoke_response_handlers_guard(m_invoke_response_handlers_lock);
boost::unique_lock invoke_response_handlers_guard(m_invoke_response_handlers_lock);
if(!m_invoke_response_handlers.empty())
{//async call scenario
boost::shared_ptr<invoke_response_handler_base> response_handler = m_invoke_response_handlers.front();