mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 13:38:31 +02:00
* Correctly close IFDEF block
This commit is contained in:
parent
e1433d2cda
commit
ed7137d197
@ -636,6 +636,19 @@ begin
|
||||
end;
|
||||
{$ENDIF WAITLOOP}
|
||||
|
||||
procedure MSecsFromNow (tNow : Timeval; aTimeout : Integer; out tfuture: TTimespec);
|
||||
|
||||
var
|
||||
td,tm : integer;
|
||||
|
||||
begin
|
||||
td:=aTimeout div 1000;
|
||||
tm:=aTimeout mod 1000;
|
||||
tfuture.tv_sec:=tnow.tv_sec+td;
|
||||
tfuture.tv_nsec:=tnow.tv_usec*1000+(tm*1000*1000);
|
||||
end;
|
||||
{$ENDIF UNIX}
|
||||
|
||||
{ ---------------------------------------------------------------------
|
||||
TSemaphore
|
||||
---------------------------------------------------------------------}
|
||||
@ -709,19 +722,6 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
procedure MSecsFromNow (tNow : Timeval; aTimeout : Integer; out tfuture: TTimespec);
|
||||
|
||||
var
|
||||
td,tm : integer;
|
||||
|
||||
begin
|
||||
td:=aTimeout div 1000;
|
||||
tm:=aTimeout mod 1000;
|
||||
tfuture.tv_sec:=tnow.tv_sec+td;
|
||||
tfuture.tv_nsec:=tnow.tv_usec*1000+(tm*1000*1000);
|
||||
end;
|
||||
{$ENDIF UNIX}
|
||||
|
||||
|
||||
function TSemaphore.WaitFor(aTimeout: Cardinal = INFINITE): TWaitResult;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user