Skip to content

Commit 92848e5

Browse files
committed
Remove unused fTry from push_lock
1 parent a72003d commit 92848e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void potential_deadlock_detected(const std::pair<void*, void*>& mismatch,
9898
assert(false);
9999
}
100100

101-
static void push_lock(void* c, const CLockLocation& locklocation, bool fTry)
101+
static void push_lock(void* c, const CLockLocation& locklocation)
102102
{
103103
if (lockstack.get() == nullptr)
104104
lockstack.reset(new LockStack);
@@ -130,7 +130,7 @@ static void pop_lock()
130130

131131
void EnterCritical(const char* pszName, const char* pszFile, int nLine, void* cs, bool fTry)
132132
{
133-
push_lock(cs, CLockLocation(pszName, pszFile, nLine, fTry), fTry);
133+
push_lock(cs, CLockLocation(pszName, pszFile, nLine, fTry));
134134
}
135135

136136
void LeaveCritical()

0 commit comments

Comments
 (0)