This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: waking a thread that's in select()?
- To: grante at visi dot com (Grant Edwards)
- Subject: Re: [ECOS] waking a thread that's in select()?
- From: andrew dot lunn at ascom dot ch (Andrew Lunn)
- Date: Thu, 28 Sep 2000 16:53:26 +0200 (MET DST)
- Cc: ecos-discuss at sources dot redhat dot com
>
> 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.
Andrew