This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: about cyg_drv_dsr_lock in function of serial_write/serial_read
- To: "ecos-discuss" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: Re: [ECOS] about cyg_drv_dsr_lock in function of serial_write/serial_read
- From: "ylyuan" <ylyuan at davform dot com>
- Date: Tue, 28 Mar 2000 14:50:11 +0800
- References: <006301bf987f$108c6c50$8664a8c0@yyl2000>
I'm sorry I ask a stupid question,I don't notice the cyg_drv_cond_wait unlock
the schedule lock.
----- Original Message -----
From: "ylyuan" <ylyuan@davform.com>
To: "ecos-discuss" <ecos-discuss@sourceware.cygnus.com>
Sent: Tuesday, March 28, 2000 2:30 PM
Subject: [ECOS] about cyg_drv_dsr_lock in function of serial_write/serial_read
> Hi,in interrupt mode,when a thread wants to send some content through serial,it
> would call cyg_io_write which calls serial_write,if serial_write blocks because
> the buffer is full,for dsr is locked by the call of cyg_drv_dsr_lock,the dsr of
> serial can't be called and wake up the thread suspended.
> Thanks a lot!