This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Is it possible to post semaphore in an interrupt handler ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]