[ECOS] How to use cyg_io_select

Franck MAMALET FT-R&D DIH/OCF franck.mamalet@rd.francetelecom.fr
Mon Jun 18 07:23:00 GMT 2001


Hi,
I would like to use a non-blocking serial read with wake-up capabilities.
I have selected  CYGPKG_IO_SERIAL_SELECT_SUPPORT in my configuration.
The function cyg_selrecord() (called by serial_select called by cyg_io_select)
stores the thread number in a "sip" structure.
And serial_rcv_char calls cyg_selwakeup  tests the sip structure
when rx buffer going from empty to non-empty. However this function broadcast
a CYG_COND_VARIABLE called selwait .
I guess I don't use these functions in the right way, because my thread
is never linked to selwait and will never be woken-up.
Can anyone explain to me how it should work? and how to use it?
Thanks,
Franck.
 
-- 
& france telecom 
Mamalet Franck
FTR&D DIH/OCF
Tél  : 04 76 76 45 71   Fax : 04 76 90 34 43
franck.mamalet@rd.francetelecom.fr
 



More information about the Ecos-discuss mailing list