[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is termios reentrant?
- Date: Tue, 04 May 1999 17:49:58 +0200
- From: chn at intego.de (Christian Haan)
- Subject: Is termios reentrant?
> On Thu, 29 Apr 1999, Christian Haan wrote:
>
> > I'm experiencing lockups while reading and writing concurrently from
> > different tasks to the console. Isn't termios reentrant?
>
> It is supposed to be.
>
> The general termios structures are protected by a binary semaphore.
> Each open tty also has a binary semaphore associated with it.
>
> Notice that in c/src/lib/libc in rtems_termios_read, the entire operation
> is bracketed by proper calls to semaphore obtain and release.
>
> And the read and writes use different semaphores so there should be no
> conflict there.
>
> This does not mean there is not an implementation error in termios, only
> that the design is reentrant.
Sorry for the question. You termios is indeed reentrant.
My problems were caused by some lost interrupts. Now that I catch these
everything works fine.
Christian
--
================================================================
Christian Haan Intego Plankensteiner Wagner Gbr
Tel : +49-9131-691-3823 Am Weichselgarten 7
Fax : +49-9131-691-111 91058 Erlangen
Email: chn at intego.de GERMANY
================================================================