]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
Race condition clearing bit vectors that are already clear in Init.init.
authorR. Steve McKown <rsmckown@gmail.com>
Fri, 24 Sep 2010 22:32:11 +0000 (16:32 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Fri, 24 Sep 2010 22:41:57 +0000 (16:41 -0600)
commit63b3ea113fdeca4b51bf68fec23354e6a78fafae
treebe0137f35732a6c9f7ac63dcb0a2139f441be1e0
parenta2bb24f03eb12b5745ff8680dc70c75c3a9983bb
Race condition clearing bit vectors that are already clear in Init.init.

There's no point to clear the bit vectors in SharedArbiterP.Init.init,
because the compiler guarantees they are already clear, see BitVectorC.nc.
However, manually clearing them can create a situation where someone requesting
a shared resource has their requesting bit erased, depending upon the order of
calls to Init.init providers during boot.
tos/system/SharedArbiterC.nc
tos/system/SharedArbiterP.nc