We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Code is:
procedure TOmniValueQueue.DoWithCritSec(Proc: TProc); var PickUp: TInterestSet; begin EnterCriticalSection; try FNotifiableEvents := []; Proc; PickUp := FNotifiableEvents; FNotifiableEvents := [] finally EnterCriticalSection; end; PropagateNotifications(PickUp); end; { TOmniValueQueue.DoWithCritSec }
I think it should be
procedure TOmniValueQueue.DoWithCritSec(Proc: TProc); var PickUp: TInterestSet; begin EnterCriticalSection; try FNotifiableEvents := []; Proc; PickUp := FNotifiableEvents; FNotifiableEvents := [] finally LeaveCriticalSection; end; // <- HEre should leave the critical section PropagateNotifications(PickUp); end; { TOmniValueQueue.DoWithCritSec }
The text was updated successfully, but these errors were encountered:
Yeah looks like a pretty obvious bug, you should submit a pull request.
Sorry, something went wrong.
No branches or pull requests
Code is:
I think it should be
The text was updated successfully, but these errors were encountered: