temptimer : tltimer ;\r
\r
begin\r
- gettimeofday(tvnow);\r
+ gettimemonotonic(tvnow);\r
currenttimer := firsttimer;\r
while assigned(currenttimer) do begin\r
//writeln(currenttimer.enabled);\r
prepsigpipe;\r
{$endif}\r
selectresult := select(maxs+1,@fdsr,@fdsw,nil,0);\r
- while (selectresult>0) or assigned(firsttask) or assigned(currenttask) do begin;\r
+ while (selectresult>0) or assigned(firsttask) do begin;\r
\r
processtasks;\r
processtimers;\r
fd_zero(FDSW);\r
if result=-1 then begin\r
if linuxerror = SYS_EINTR then begin\r
- // we received a signal it's not a problem\r
+ // we received a signal it is not a problem\r
end else begin\r
raise esocketexception.create('select returned error '+inttostr(linuxerror));\r
end;\r
selectresult := doselect(nil);\r
\r
end else begin\r
- gettimeofday(tvnow);\r
+ gettimemonotonic(tvnow);\r
tv_subtract(tv,tvnow);\r
\r
//writeln('timers active');\r