From: Godmar Back (gback@cs.utah.edu)
Date: Wed Sep 09 1998 - 16:34:04 EDT
>
> >
> > On Wed, 09 Sep 1998, Godmar Back wrote:
> > >To elaborate on my previous comment:
> > > Basically, if we could get X to use jthread's "read()" when it
> > >tries to read the next event --- which could be done by somehow telling
> > >Xlib where to read from --- you could turn Toolkit.isMultiThreaded on,
> >
> > We don't have to - we simply can do something like
> >
> > evtGetNextEvent(..) {
> > ..
> > int fd = XConnectionNumber(X->dsp); /* on POSIX sys, only */
> > read( fd, buf, 0); /* "blocking" */
> > ..
> > XNextEvent(..);
> > ..
> > }
> >
> > Let me give it a try..
> >
>
> Hmmm, how do you get XNextEvent to use the data in the "buf" you
> just read?
>
Oh wait, I see where you're going: you're trying to read zero bytes.
But what if there's not enough data to parse the next event in the stream?
Hmmm, I guess then it would be no different than now.
If that works, we can also export a "sleep until ready for read"
function from the jthread/jsyscall interface aka multi-threaded select().
- Godmar
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:56:56 EDT