Browse Source

* make infinite a default param

marcoonthegit 3 years ago
parent
commit
576ef5a33d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/fcl-base/src/syncobjs.pp

+ 3 - 3
packages/fcl-base/src/syncobjs.pp

@@ -57,7 +57,7 @@ type
       FHandle : TEventHandle;
       FLastError : Integer;
    public
-      destructor destroy;override;
+      destructor Destroy; override;
       property Handle : TEventHandle read FHandle;
       property LastError : Integer read FLastError;
    end;
@@ -71,10 +71,10 @@ type
         AManualReset,InitialState : Boolean;const Name : string;
         UseComWait:boolean=false);
       constructor Create(UseComWait : Boolean=false);
-      destructor destroy; override;
+      destructor Destroy; override;
       procedure ResetEvent;
       procedure SetEvent;
-      function WaitFor(Timeout : Cardinal) : TWaitResult;
+      function WaitFor(Timeout : Cardinal=INFINITE) : TWaitResult;
       Property ManualReset : Boolean read FManualReset;
    end;