From: Grant Edwards <grante@visi.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Re: Is it possible to read and write from two different threads via the same fopen("/dev/ser0"...) handle ???
Date: Fri, 21 Apr 2006 21:16:00 -0000 [thread overview]
Message-ID: <20060421211620.9680857099@rivatek.dnsalias.net> (raw)
In-Reply-To: <44493EBD.7050708@speag.ch>
In gmane.os.ecos.general, you wrote:
> I want to read and write the same serial port from a reading
> thread and from am other writeing thread. Should do this work?
Yes, that should work.
> I can do this via the cyg_io_read(...) and cyg_io_write(...)
> functions,
Same here. I've always used the cyg_io_xxxx() functions to
access serial ports, and never had any problems with
"simultaneous" read/write operations from different threads.
> but the file-version dosn't worked...
I would expect that to work as well, but I've never tried it.
> But may be i did it wrong...
Maybe.
--
Grant Edwards grante Yow! I was in a HOT
at TUB! I was NORMAL! I was
visi.com ITALIAN!! I enjoyed th'
EARTHQUAKE!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
prev parent reply other threads:[~2006-04-21 21:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-21 20:21 [ECOS] " oliver munz @ s p e a g
2006-04-21 21:16 ` Grant Edwards [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060421211620.9680857099@rivatek.dnsalias.net \
--to=grante@visi.com \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).