[ECOS] Is it possible to post semaphore in an interrupt handler ?

Philippe Vandermersch phil@equator.com
Fri Feb 21 19:53:00 GMT 2003


Hi,

It looks like it is not safe to post a semaphore while under interrupt.
It seems that there is a race condition if a thread is doing a sem_get
at the same time.

If in my thread, I disable interrupt before to access any semaphore, it
seems to work pretty well.

Any comments ?

Phil.

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list