]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
add global variable THE_FRSH_CPU_ID
authorsangorrin <sangorrin@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Thu, 26 Jun 2008 10:46:15 +0000 (10:46 +0000)
committersangorrin <sangorrin@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Thu, 26 Jun 2008 10:46:15 +0000 (10:46 +0000)
git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@1296 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_distributed.h

index df00cabfec2fd43ec89c2b4b5fa62d65164fc1cf..de11f8d4f3e697c66600c8d5fc9b31aed1bb86c8 100644 (file)
@@ -79,6 +79,9 @@
 
 FRSH_CPP_BEGIN_DECLS
 
+// this global variable is assigned by frsh_distributed_init()
+extern frsh_resource_id_t THE_FRSH_CPU_ID;
+
 /**
  * @defgroup distributed Distributed module
  *
@@ -353,12 +356,12 @@ int frsh_contract_unmarshal(frsh_contract_t      *contract,
  * @ingroup distributed
  *
  * Using the core services of FRSH, contracts may be negotiated in a
- * single step. 
+ * single step.
  *
  * An alternative two-step negotiation process is introduced in the
  * distribution module: the first step involves the reservation of the
  * resources, but without the right to use them, and the second step
- * is the commitment to use those resources.  
+ * is the commitment to use those resources.
  *
  * The rationale behind this approach is that in distributed systems,
  * when a distributed transaction is being negotiated the system
@@ -397,7 +400,7 @@ int frsh_contract_negotiate_reservation
 
 /**
  * frsh_vres_commit_reservation()
- * 
+ *
  * Commit the resources reserved for a virtual resource through a
  * frsh_contract_negotiate_reservation operation. The effects of
  * subsequent calls to frsh_contract_negotiate_reservation and