]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/ArbiterP.nc
Inserted a check into Resource.request() that controls if the current caller id has...
[tinyos-2.x.git] / tos / system / ArbiterP.nc
index b07f975dc4e5b2b2e762a90c020aff7772ec43cf..bf66c2c58d047c6636fc5df0e505fbd38bd8261b 100644 (file)
@@ -81,6 +81,9 @@ implementation {
         state = RES_GRANTING;
         reqResId = id;
       }
+      else if (reqResId == id) {
+       return SUCCESS;
+      }
       else return call Queue.enqueue(id);
     }
     signal ResourceDefaultOwner.requested();