This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Is it possible to post semaphore in an interrupt handler ?
- From: Philippe Vandermersch <phil at equator dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 21 Feb 2003 11:53:21 -0800
- Subject: [ECOS] Is it possible to post semaphore in an interrupt handler ?
- Organization: Equator Technologies
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