]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Non atomic access when returning isRunning()
authorklueska <klueska>
Thu, 23 Oct 2008 20:52:15 +0000 (20:52 +0000)
committerklueska <klueska>
Thu, 23 Oct 2008 20:52:15 +0000 (20:52 +0000)
tos/lib/timer/VirtualizeAlarmC.nc

index e7c65d433ed434ca81228f431d941704d6180798..07180360d4ef584751a9d0697403f217b02f969a 100644 (file)
@@ -166,7 +166,7 @@ implementation
 
   // extended interface
   async command bool Alarm.isRunning[uint8_t id]() {
-    return m.isset[id];
+    atomic return m.isset[id];
   }
 
   async command void Alarm.startAt[uint8_t id]( size_type t0, size_type dt ) {