]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/FcfsArbiterC.nc
Update of documentation
[tinyos-2.x.git] / tos / system / FcfsArbiterC.nc
index 79f3683a57c9f5df8081aac2ef5b67776f7765a4..8476d4209c000e590c3103096ab1261b3caf3b9e 100644 (file)
  * Please refer to TEP 108 for more information about this component and its
  * intended use.<br><br>
  *
- * This component provides the Resource, ArbiterInfo, and Resource
- * Controller interfaces and uses the ResourceConfigure interface as
+ * This component provides the Resource, ArbiterInfo, and ResourceDefaultOwner
+ * interfaces and uses the ResourceConfigure interface as
  * described in TEP 108.  It provides arbitration to a shared resource in
  * an FCFS fashion.  An array is used to keep track of which users have put
  * in requests for the resource.  Upon the release of the resource by one
  * of these users, the array is checked and the next user (in FCFS order)
  * that has a pending request will ge granted control of the resource.  If
- * there are no pending requests, then the resource becomes idle and any
- * user can put in a request and immediately receive access to the
- * Resource.
+ * there are no pending requests, then the resource is granted to the default 
+ * user.  If a new request is made, the default user will release the resource, 
+ * and it will be granted to the requesting cleint.
  *
  * @param <b>resourceName</b> -- The name of the Resource being shared
  * 
@@ -80,7 +80,7 @@ generic configuration FcfsArbiterC(char resourceName[]) {
   provides {
     interface Resource[uint8_t id];
     interface ResourceRequested[uint8_t id];
-    interface ResourceController;
+    interface ResourceDefaultOwner;
     interface ArbiterInfo;
   }
   uses interface ResourceConfigure[uint8_t id];
@@ -94,7 +94,7 @@ implementation {
 
   Resource = Arbiter;
   ResourceRequested = Arbiter;
-  ResourceController = Arbiter;
+  ResourceDefaultOwner = Arbiter;
   ArbiterInfo = Arbiter;
   ResourceConfigure = Arbiter;