Explorar o código

* Patch from Steve Howe so daemon thread does not consume all CPU

git-svn-id: trunk@9267 -
michael %!s(int64=18) %!d(string=hai) anos
pai
achega
efdddfd82c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      packages/fcl-base/src/inc/daemonapp.pp

+ 3 - 0
packages/fcl-base/src/inc/daemonapp.pp

@@ -1137,7 +1137,10 @@ begin
     if not FDaemon.Execute then
       begin
       While Not Terminated do
+        begin
         CheckControlMessage(True);
+        Sleep(50);
+        end;
       CheckControlMessage(False);
       end;
     end;