mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 00:10:12 +02:00
* Shortcuts must pass result on
This commit is contained in:
parent
a816fc2114
commit
fa1abfba92
@ -188,9 +188,12 @@ function MonitorEnter(Const aObject: TObject; aTimeout: Cardinal = INFINITE): Bo
|
||||
|
||||
begin
|
||||
if atimeout=Infinite then
|
||||
TMonitor.Enter(aObject)
|
||||
begin
|
||||
TMonitor.Enter(aObject);
|
||||
Result:=True;
|
||||
end
|
||||
else
|
||||
TMonitor.Enter(aObject,aTimeOut);
|
||||
Result:=TMonitor.Enter(aObject,aTimeOut);
|
||||
end;
|
||||
|
||||
|
||||
@ -211,14 +214,14 @@ end;
|
||||
function MonitorWait(Const aObject: TObject; aTimeout: Cardinal): Boolean;
|
||||
|
||||
begin
|
||||
TMonitor.Wait(aObject,aTimeOut);
|
||||
Result:=TMonitor.Wait(aObject,aTimeOut);
|
||||
end;
|
||||
|
||||
|
||||
function MonitorWait(Const aObject, aLock: TObject; aTimeout: Cardinal): Boolean;
|
||||
|
||||
begin
|
||||
TMonitor.Wait(aObject,aLock,aTimeOut);
|
||||
Result:=TMonitor.Wait(aObject,aLock,aTimeOut);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user