Skip to content

Commit

Permalink
Remove unused fTry from push_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Sep 30, 2017
1 parent a72003d commit 92848e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sync.cpp
Expand Up @@ -98,7 +98,7 @@ static void potential_deadlock_detected(const std::pair<void*, void*>& mismatch,
assert(false);
}

static void push_lock(void* c, const CLockLocation& locklocation, bool fTry)
static void push_lock(void* c, const CLockLocation& locklocation)
{
if (lockstack.get() == nullptr)
lockstack.reset(new LockStack);
Expand Down Expand Up @@ -130,7 +130,7 @@ static void pop_lock()

void EnterCritical(const char* pszName, const char* pszFile, int nLine, void* cs, bool fTry)
{
push_lock(cs, CLockLocation(pszName, pszFile, nLine, fTry), fTry);
push_lock(cs, CLockLocation(pszName, pszFile, nLine, fTry));
}

void LeaveCritical()
Expand Down

0 comments on commit 92848e5

Please sign in to comment.