X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FSchedulerBasicP.nc;h=aadd26e50d6e4b1b08df2e7bb98963d881ec8b9d;hb=4f057e14d46beedf64d643bebd06ca3e7e903d1f;hp=983b231527ea946015996991f3423eb237f9cd4c;hpb=f44d6d35052f388b3dd92252f299df85a96d3fac;p=tinyos-2.x.git diff --git a/tos/system/SchedulerBasicP.nc b/tos/system/SchedulerBasicP.nc index 983b2315..aadd26e5 100644 --- a/tos/system/SchedulerBasicP.nc +++ b/tos/system/SchedulerBasicP.nc @@ -40,7 +40,7 @@ #include "hardware.h" -module SchedulerBasicP { +module SchedulerBasicP @safe() { provides interface Scheduler; provides interface TaskBasic[uint8_t id]; uses interface McuSleep; @@ -53,9 +53,9 @@ implementation NO_TASK = 255, }; - volatile uint8_t m_head; - volatile uint8_t m_tail; - volatile uint8_t m_next[NUM_TASKS]; + uint8_t m_head; + uint8_t m_tail; + uint8_t m_next[NUM_TASKS]; // Helper functions (internal functions) intentionally do not have atomic // sections. It is left as the duty of the exported interface functions to