This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
On Interruptions
- From: Cristiano Ligieri Pereira <cpereira at ics dot uci dot edu>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 18 Jan 2002 15:31:48 -0800 (PST)
- Subject: [ECOS] On Interruptions
Hi all,
I have a interruption which increments a counter in a periodic basis. The
variable is also read by any of the threads to find out the counter value
at any given time.
It turns out that the counter is being increased but when I read its value
from any of the threads I get a zero as the current value. The counter is
defined as a "volatile". Is there any other precaution that I should take
in order to get the right value?
thanks,
Cristiano.
------------------------------------------------------------
Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira