[fpc-devel]promised tthread patch
Marco van de Voort
marcov at stack.nl
Tue Nov 18 11:11:29 CET 2003
> > // pseudo code:
> > repeat
> > if fpread(...) = -1 then
> > not_signalled := errno = EINTR;
> > else
> > not_signalled := true;
> > until not_signalled;
> >
> > and hope the loop doesn't get tight. but fpread should block in any case
>
> It's the assumptio that fpread returns EINTR. That is a a linuxism I guess.
>
> It returns ESysEAGAIN.
>
> I'm currently patching all these occurances when pipe related.
Done, only two occurances that fix read(ln) and write(ln).
pthreads demo works now, the syncobjs demo still acts strange:
-bash-2.05b$ ./tevs
TEST OK
-bash-2.05b
(note that there is a significant pause between running and the "TEST OK"
msg)
This looks ok, but shouldn't it give more output?
More information about the fpc-devel
mailing list