]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/interfaces/private/ResourceTransferred.nc
Fixed a bug with the resource transfer
[tinyos-2.x.git] / tos / lib / mac / tkn154 / interfaces / private / ResourceTransferred.nc
index 4c7c8a9712e3525b03c698a0eea98e4d58b564a7..48f365071920339df9ff73de7bd4c60200de047f 100644 (file)
@@ -35,25 +35,11 @@ interface ResourceTransferred
 {
 
   /** 
-   * Control of a resource was transferred to this component from another
-   * client. This event is similar to the Resource.granted() event, but when a
-   * the resource is released, it is released on behalf of the client who was
-   * last signalled the Resource.granted() event.
+   * Ownership of a resource is transferred, possibly overriding the default
+   * queueing policy. This event is similar to an async Resource.granted()
+   * event, initiated by the previous owner of the resource.
    *
    * @see ResourceTransfer interface
    */
-  async event void transferred();
-
-  /** 
-   *
-   * Release control of a resource - this command is equivalent to calling
-   * Resource.release() and included for convenience. 
-   *
-   * @return SUCCESS The resource has been released <br> FAIL You tried to
-   * release but you are not the owner of the resource
-   *
-   * @see ResourceTransfer interface
-   */
-
-  async command error_t release();
+  async event void transferred(); 
 }