]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_bwres_robjs.c
renamings... redo the request and messages part... also now there will be two threads...
[frescor/fna.git] / src_frescan / frescan_bwres_robjs.c
similarity index 91%
rename from src_frescan/frescan_reply_objs.c
rename to src_frescan/frescan_bwres_robjs.c
index 5d8a991d1848fe36b3f3c16aaaa24c1c81ad4db9..01e051b4c11d19a7b1bd13b95d055e7f6929cc9f 100644 (file)
@@ -1,7 +1,7 @@
 /*!
- * @file frescan_reply_objs.h
+ * @file frescan_bwres_robjs.c
  *
- * @brief FRESCAN reply objects
+ * @brief FRESCAN bandwith reservation layer: reply objects
  *
  * This module contains the definition of the data object and operations to
  * create a pool of objects, obtain the id of an unused object, wait upon it,
@@ -16,7 +16,7 @@
  */
 
 #include <misc/freelist.h>
-#include "frescan_reply_objs.h"
+#include "frescan_bwres_robjs.h"
 #include "fosa_mutexes_and_condvars.h"
 #include "frescan_config.h"
 #include "frescan_debug.h"
@@ -47,7 +47,7 @@ static struct replyobj_t the_reply_objects[FRESCAN_MX_REPLY_OBJECTS];
 static freelist_t freelist;
 
 /**
- * frescan_replyobjects_init()
+ * frescan_bwres_robjs_init()
  *
  * Init the freelist and its mutex. The conditional variables are not
  * initialized here but when allocating a reply object. This can be more
@@ -55,7 +55,7 @@ static freelist_t freelist;
  *
  **/
 
-int frescan_replyobjects_init(int max_ceiling)
+int frescan_bwres_robjs_init(int max_ceiling)
 {
         int err;
 
@@ -70,7 +70,7 @@ int frescan_replyobjects_init(int max_ceiling)
 }
 
 /**
- * frescan_replyobject_alloc()
+ * frescan_bwres_robjs_alloc()
  *
  * Allocate an reply object with the freelist_mutex locked and then initialize
  * its cond variable, condition (predicate) and mutex. The ID of the allocated
@@ -78,7 +78,7 @@ int frescan_replyobjects_init(int max_ceiling)
  *
  **/
 
-int frescan_replyobject_alloc(frescan_robj_id_t *id, int ceiling)
+int frescan_bwres_robjs_alloc(frescan_robj_id_t *id, int ceiling)
 {
         int err, pos;
 
@@ -116,13 +116,13 @@ locked_error:
 }
 
 /**
- * frescan_replyobject_free()
+ * frescan_bwres_robjs_free()
  *
  * Destroy the cond variable and then free the replyobject
  *
  **/
 
-int frescan_replyobject_free(frescan_robj_id_t id)
+int frescan_bwres_robjs_free(frescan_robj_id_t id)
 {
         int err;
 
@@ -156,13 +156,13 @@ locked_error:
 }
 
 /**
- * frescan_replyobject_signal()
+ * frescan_bwres_robjs_signal()
  *
  * Signal the cond variable
  *
  **/
 
-int frescan_replyobject_signal(frescan_robj_id_t id)
+int frescan_bwres_robjs_signal(frescan_robj_id_t id)
 {
         int err;
 
@@ -194,13 +194,13 @@ locked_error:
 }
 
 /**
- * frescan_replyobject_wait()
+ * frescan_bwres_robjs_wait()
  *
  * Wait on the cond variable.
  *
  **/
 
-int frescan_replyobject_wait(frescan_robj_id_t id)
+int frescan_bwres_robjs_wait(frescan_robj_id_t id)
 {
         int err;
 
@@ -228,13 +228,13 @@ locked_error:
 }
 
 /**
- * frescan_replyobject_timedwait()
+ * frescan_bwres_robjs_timedwait()
  *
  * Wait on the cond variable with a timeout.
  *
  **/
 
-int frescan_replyobject_timedwait(frescan_robj_id_t id,
+int frescan_bwres_robjs_timedwait(frescan_robj_id_t id,
                                   const struct timespec *abstime)
 {
         int err;