mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 08:25:44 -04:00
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:
parent
977dedce2c
commit
8af33c71cf
5 changed files with 5 additions and 85 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue