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

Reply via email to