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: question on eCos mutex behavior


> You could do something like:
>     
> for (;;) {
>     cyg_mutex_lock()
>     cyg_thread_set_priority(cyg_thread_get_priority()-1);
>     work();
>     cyg_mutex_unlock
>     cyg_thread_set_priority(cyg_thread_get_priority()+1);
> }

Duh! Forget that, it does not work!

     Andrew

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