]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_distributed.h
Adding a test to see the time resolution
[frescor/frsh-include.git] / frsh_distributed.h
index c3ef1d4247b0f9a83e6d19b255b7611b9cadf72a..78f60f21195642881eb6fe632369c72e7aaf4729 100644 (file)
 //  by the GNU General Public License. This exception does not
 //  however invalidate any other reasons why the executable file might be
 //  covered by the GNU Public License.
-//  As a special exception, if you include this header file into source
-//  files to be compiled, this header file does not by itself cause
-//  the resulting executable to be covered by the GNU General Public
-//  License.  This exception does not however invalidate any other
-//  reasons why the executable file might be covered by the GNU General
-//  Public License.
 // -----------------------------------------------------------------------
 //frsh_distributed.h
 //==============================================
 
 FRSH_CPP_BEGIN_DECLS
 
+// this global variable is assigned by frsh_distributed_init()
+extern frsh_resource_id_t THE_FRSH_CPU_ID;
+
+typedef enum {
+        FRSH_NETPF_FRESCAN      = 0,
+        FRSH_NETPF_RTEP         = 1,
+        FRSH_NETPF_UNIX         = 2,
+        FRSH_NETPF_FWP          = 3,
+        FRSH_NETPF_CLUSTER_TREE = 4,
+        FRSH_NETPF_ITEM         = 5,
+} frsh_netpf_t;
+
 /**
  * @defgroup distributed Distributed module
  *
@@ -359,12 +365,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
@@ -403,7 +409,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