]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_bwres_robjs.c
some reorganization... now the acceptor is simpler.. everything goes through requests...
[frescor/fna.git] / src_frescan / frescan_bwres_robjs.c
index 01e051b4c11d19a7b1bd13b95d055e7f6929cc9f..54db76f2112776f2936cc9dd64384ed8634d0c42 100644 (file)
@@ -82,7 +82,7 @@ int frescan_bwres_robjs_alloc(frescan_robj_id_t *id, int ceiling)
 {
         int err, pos;
 
-        DEBUG(FRESCAN_REPLYOBJ_ENABLE_DEBUG,
+        DEBUG(FRESCAN_ROBJS_ENABLE_DEBUG,
               "allocating reply object, is_initialized=%d\n", is_initialized);
 
         if (is_initialized == false) return -1;
@@ -105,7 +105,7 @@ int frescan_bwres_robjs_alloc(frescan_robj_id_t *id, int ceiling)
         err = fosa_mutex_init(&the_reply_objects[pos].mutex, ceiling);
         if (err != 0) return err;
 
-        DEBUG(FRESCAN_REPLYOBJ_ENABLE_DEBUG,
+        DEBUG(FRESCAN_ROBJS_ENABLE_DEBUG,
               "reply object allocated, id=%d\n", *id);
 
         return 0;
@@ -126,7 +126,7 @@ int frescan_bwres_robjs_free(frescan_robj_id_t id)
 {
         int err;
 
-        DEBUG(FRESCAN_REPLYOBJ_ENABLE_DEBUG,
+        DEBUG(FRESCAN_ROBJS_ENABLE_DEBUG,
               "free reply id=%d, is_initialized=%d\n", id, is_initialized);
 
         if (is_initialized == false) return -1;
@@ -166,18 +166,18 @@ int frescan_bwres_robjs_signal(frescan_robj_id_t id)
 {
         int err;
 
-        DEBUG(FRESCAN_REPLYOBJ_ENABLE_DEBUG,
+        DEBUG(FRESCAN_ROBJS_ENABLE_DEBUG,
               "is_initialized=%d\n", is_initialized);
         if (is_initialized == false) return -1;
 
-        DEBUG(FRESCAN_REPLYOBJ_ENABLE_DEBUG,
+        DEBUG(FRESCAN_ROBJS_ENABLE_DEBUG,
               "taking mutex of the reply id=%d\n", id);
         err = fosa_mutex_lock(&the_reply_objects[id].mutex);
         if (err != 0) return err;
 
                 the_reply_objects[id].is_work_done = true;
 
-                DEBUG(FRESCAN_REPLYOBJ_ENABLE_DEBUG,
+                DEBUG(FRESCAN_ROBJS_ENABLE_DEBUG,
                       "signal the cond variable\n");
                 err = fosa_cond_signal(&the_reply_objects[id].cond);
                 if (err != 0) goto locked_error;