Browse Source

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

git-svn-id: trunk@9267 -
michael 18 năm trước cách đây
mục cha
commit
efdddfd82c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;