[ECOS] cyg_io_lookup() with threads
Gary Thomas
gary@mlbassoc.com
Sat Feb 12 14:09:00 GMT 2005
On Sat, 2005-02-12 at 14:47 +0100, Stefan Rosinger wrote:
> Hi eCos group!
>
> Where I have to make a serial device lookup, if I want to use
> cyg_io_read/write with this serial device (tty based driver) in other
> threads?
> Can I do this(or have i to do it) in an own thread and pass the handle to
> the other threads?
Yes, "handles" are just pointers that the system uses to access
the device and, like everything in eCos, are a global resource.
You can also use the standard C (stdio) interfaces and just
pass around file descriptors.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list