Browse Source

SOCL: fix race

Sylvain Henry 12 years ago
parent
commit
a56bf9a099
1 changed files with 3 additions and 1 deletions
  1. 3 1
      socl/src/gc.c

+ 3 - 1
socl/src/gc.c

@@ -108,10 +108,12 @@ void gc_stop(void) {
 
 int gc_entity_release_ex(entity e, const char * DEBUG_PARAM(caller)) {
 
+  DEBUG_MSG("[%s] Decrementing refcount of %s %p to ", caller, e->name, e);
+
   /* Decrement reference count */
   int refs = __sync_sub_and_fetch(&e->refs, 1);
 
-  DEBUG_MSG("[%s] Decrementing refcount of %s %p to %d\n", caller, e->name, e, refs);
+  DEBUG_MSG_NOHEAD("%d\n", refs);
 
   assert(refs >= 0);