|
@@ -188,9 +188,12 @@ function MonitorEnter(Const aObject: TObject; aTimeout: Cardinal = INFINITE): Bo
|
|
|
|
|
|
begin
|
|
begin
|
|
if atimeout=Infinite then
|
|
if atimeout=Infinite then
|
|
- TMonitor.Enter(aObject)
|
|
|
|
|
|
+ begin
|
|
|
|
+ TMonitor.Enter(aObject);
|
|
|
|
+ Result:=True;
|
|
|
|
+ end
|
|
else
|
|
else
|
|
- TMonitor.Enter(aObject,aTimeOut);
|
|
|
|
|
|
+ Result:=TMonitor.Enter(aObject,aTimeOut);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
@@ -211,14 +214,14 @@ end;
|
|
function MonitorWait(Const aObject: TObject; aTimeout: Cardinal): Boolean;
|
|
function MonitorWait(Const aObject: TObject; aTimeout: Cardinal): Boolean;
|
|
|
|
|
|
begin
|
|
begin
|
|
- TMonitor.Wait(aObject,aTimeOut);
|
|
|
|
|
|
+ Result:=TMonitor.Wait(aObject,aTimeOut);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
function MonitorWait(Const aObject, aLock: TObject; aTimeout: Cardinal): Boolean;
|
|
function MonitorWait(Const aObject, aLock: TObject; aTimeout: Cardinal): Boolean;
|
|
|
|
|
|
begin
|
|
begin
|
|
- TMonitor.Wait(aObject,aLock,aTimeOut);
|
|
|
|
|
|
+ Result:=TMonitor.Wait(aObject,aLock,aTimeOut);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|