[kaffe] unix-pthreads accept timeout
Mathieu Dube
mdube at 8d.com
Wed Aug 7 07:13:37 PDT 2002
Ok,
I changed it. I also put a check to see if the timeout is 0 to pass NULL to
select() and added a timeout*1000 since usecs and millisecs arent the same.
My java programmer here seems to say it works.
Thanks
Later
-Mat
On Wednesday 07 August 2002 10:02, you wrote:
> > Plus jthreadedAccept as a timeout passed as an argument. It works
> > perfectly in the unix-jthreads version.
>
> Right, I wouldn't have implemented it there if it hadn't been
> needed.
>
> > > (On a more general note, the interface contract of the jsyscall stuff
> > > is that you don't pass in arbitrary or arbitrarily modded file
> > > descriptors, you pass the fds you get from jthreadedSocket/Open/Accept
> > > etc. A minimum of encapsulation doesn't hurt.)
> >
> > Do you mean that I should write a function that waits for the timeout
> > instead of having the select() code directly in the jthreadedAccept
> > function?
>
> Just remove the test whether it's nonblocking in your patch.
> Assume that it's a fd return from a jthreaded* function, which
> is blocking. Other than that, select() might just work in
> pthreads.
>
> - Godmar
--
Mathieu Dube -- mdube at 8d.com
8D Technologies Inc.
http://www.8d.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syscalls.c
Type: text/x-c
Size: 13769 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20020807/349df002/attachment-0003.bin
More information about the kaffe
mailing list