[ECOS] waking a thread that's in select()?
Grant Edwards
grante@visi.com
Thu Sep 28 08:03:00 GMT 2000
On Thu, Sep 28, 2000 at 04:53:26PM +0200, Andrew Lunn wrote:
> > I've got a thread that is doing a select() on a set of sockets
> > (waiting for incoming TCP requests). Is there a way for
> > another thread to wake-up the select()ing thread?
>
> Yes.
>
> There is a function to break select out. Have a look at the end of
> packanges/net/tcpip/current/src/lib/select.c. My machine is in bits on
> the desk at the moment so i cannot lookup the exact function name.
Found it -- thanks. It's pretty obvious once you look in the
right file. ;) For some reason I was confusing myself by
looking at the tsleep code that waits on a semaphore...
--
Grant Edwards
grante@visi.com
More information about the Ecos-discuss
mailing list