This is the mail archive of the ecos-discuss@sourceware.org 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: at91 SPI driver, use of cyg_drv_dsr_lock()


Gary Thomas wrote:
cyg_drv_dsr_lock() only prevents DSRs until the thread gives up the CPU
or cyg_drv_dsr_unlock() is called.  In this case, if the thread decides
tp call cyg_drv_cond_wait(), then the DSR lock is dropped.  Once the DSR
runs and signals the condition variable, the thread is resumed - *with*
DSRs locked again.  Once the thread exits the 'while()' loop, the DSR
lock will once again be dropped.

Aaaaah, so the DSR lock-state is really a per-thread state, cool! Thanks Gary


Peter Kooiman




-- 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]