This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cyg_io_lookup() with threads


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]