mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 10:03:03 +01:00
Simplification.
This commit is contained in:
parent
c916dc94e9
commit
d54b4a731f
@ -2924,8 +2924,7 @@ static DWORD enterFastMutex(FAST_MUTEX* lpMutex, DWORD dwMilliseconds)
|
||||
unlockSharedSection(lpSect);
|
||||
|
||||
// TODO actual timeout can be of any length
|
||||
const DWORD tm = (dwMilliseconds == INFINITE) ? 5000 :
|
||||
((dwMilliseconds > 5000) ? 5000 : dwMilliseconds);
|
||||
const DWORD tm = (dwMilliseconds == INFINITE || dwMilliseconds > 5000) ? 5000 : dwMilliseconds;
|
||||
const DWORD dwResult = WaitForSingleObject(lpMutex->hEvent, tm);
|
||||
|
||||
InterlockedDecrement(FIX_TYPE(&lpSect->lThreadsWaiting));
|
||||
|
Loading…
Reference in New Issue
Block a user