lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix slow send speed, new fifo allows get of entire buffer
[lcore.git]
/
lcoreselect.pas
diff --git
a/lcoreselect.pas
b/lcoreselect.pas
index f613f6714fdf0312af5f63131c62a975956afdab..ad816002eced002543ec03de43363c7b4331ca24 100644
(file)
--- a/
lcoreselect.pas
+++ b/
lcoreselect.pas
@@
-69,7
+69,7
@@
var
temptimer : tltimer ;
\r
\r
begin
\r
temptimer : tltimer ;
\r
\r
begin
\r
- gettime
ofday
(tvnow);
\r
+ gettime
monotonic
(tvnow);
\r
currenttimer := firsttimer;
\r
while assigned(currenttimer) do begin
\r
//writeln(currenttimer.enabled);
\r
currenttimer := firsttimer;
\r
while assigned(currenttimer) do begin
\r
//writeln(currenttimer.enabled);
\r
@@
-190,7
+190,7
@@
begin
prepsigpipe;
\r
{$endif}
\r
selectresult := select(maxs+1,@fdsr,@fdsw,nil,0);
\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
\r
processtasks;
\r
processtimers;
\r
@@
-249,7
+249,7
@@
begin
fd_zero(FDSW);
\r
if result=-1 then begin
\r
if linuxerror = SYS_EINTR then begin
\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
i
s not a problem
\r
end else begin
\r
raise esocketexception.create('select returned error '+inttostr(linuxerror));
\r
end;
\r
end else begin
\r
raise esocketexception.create('select returned error '+inttostr(linuxerror));
\r
end;
\r
@@
-309,7
+309,7
@@
begin
selectresult := doselect(nil);
\r
\r
end else begin
\r
selectresult := doselect(nil);
\r
\r
end else begin
\r
- gettime
ofday
(tvnow);
\r
+ gettime
monotonic
(tvnow);
\r
tv_subtract(tv,tvnow);
\r
\r
//writeln('timers active');
\r
tv_subtract(tv,tvnow);
\r
\r
//writeln('timers active');
\r