]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/SharedArbiterC.nc
Race condition clearing bit vectors that are already clear in Init.init.
[tinyos-2.x.git] / tos / system / SharedArbiterC.nc
index 2e61d5cb06c268400e776c13dba0a1d8905e6a6a..19499784d2aab12f8d9a73b64d3e3e07c6bb2222 100644 (file)
@@ -45,14 +45,11 @@ generic configuration SharedArbiterC(char resourceName[]) {
 implementation {
   enum { CLIENTS = uniqueCount(resourceName) };
 
-  components new SharedArbiterP(CLIENTS);
+  components new SharedArbiterP();
   Resource = SharedArbiterP;
   ResourceDefaultOwner = SharedArbiterP;
   ArbiterInfo = SharedArbiterP;
 
-  components MainC;
-  MainC.SoftwareInit -> SharedArbiterP;
-
   components new BitVectorC(CLIENTS) as GrantedVectorC;
   SharedArbiterP.GrantedVector -> GrantedVectorC;