mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 14:29:14 +02:00
* Patch from Steve Howe so daemon thread does not consume all CPU
git-svn-id: trunk@9267 -
This commit is contained in:
parent
cb9608c149
commit
efdddfd82c
@ -1137,7 +1137,10 @@ begin
|
|||||||
if not FDaemon.Execute then
|
if not FDaemon.Execute then
|
||||||
begin
|
begin
|
||||||
While Not Terminated do
|
While Not Terminated do
|
||||||
|
begin
|
||||||
CheckControlMessage(True);
|
CheckControlMessage(True);
|
||||||
|
Sleep(50);
|
||||||
|
end;
|
||||||
CheckControlMessage(False);
|
CheckControlMessage(False);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user