Replacing lock_guard from scoped_lock. (#120)

This commit is contained in:
Savinda Senevirathne
2020-09-18 10:29:34 +05:30
committed by GitHub
parent a5ef8df83e
commit 38ef3cc1b1
7 changed files with 29 additions and 32 deletions

View File

@@ -136,7 +136,7 @@ namespace read_req
if (sc::execute_contract(*context_itr) != -1)
{
// If contract execution was succcessful, send the output back to user.
std::lock_guard<std::mutex> lock(usr::ctx.users_mutex);
std::scoped_lock<std::mutex> lock(usr::ctx.users_mutex);
const auto user_buf_itr = context_itr->args.userbufs.begin();
if (!user_buf_itr->second.output.empty())