We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6a227 commit 98ba60eCopy full SHA for 98ba60e
src/jrd/jrd.cpp
@@ -9011,11 +9011,13 @@ void thread_db::reschedule()
9011
{
9012
FB_UINT64 cnt = sync->getLockCounter();
9013
9014
- EngineCheckout cout(this, FB_FUNCTION);
9015
- Thread::yield();
+ { // scope
+ EngineCheckout cout(this, FB_FUNCTION);
9016
+ Thread::yield();
9017
- while (sync->hasContention() && (sync->getLockCounter() == cnt))
9018
- Thread::sleep(1);
+ while (sync->hasContention() && (sync->getLockCounter() == cnt))
9019
+ Thread::sleep(1);
9020
+ }
9021
9022
checkCancelState();
9023
}
0 commit comments