From 072ea6035299db3160ea411c5f6b64aa2580b0ac Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Wed, 24 Dec 2008 03:59:08 +0100 Subject: [PATCH] Fix: use implicit nobug flag for releasing needs new NoBug as well, I should check my code before pushing it to master --- src/lib/condition.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/condition.h b/src/lib/condition.h index 6e68409bd..328d07c49 100644 --- a/src/lib/condition.h +++ b/src/lib/condition.h @@ -57,7 +57,7 @@ LUMIERA_ERROR_DECLARE (CONDITION_DESTROY); }); \ lumiera_condition_section_.condition; \ ({ \ - LUMIERA_CONDITION_UNLOCK(nobugflag) \ + LUMIERA_CONDITION_UNLOCK \ })) @@ -68,12 +68,12 @@ LUMIERA_ERROR_DECLARE (CONDITION_DESTROY); * got unlocked. * @param nobugflag NoBug flag used to log actions on the condition */ -#define LUMIERA_CONDITION_UNLOCK \ - if (lumiera_condition_section_.condition) \ - { \ - pthread_mutex_unlock (&lumiera_condition_section_.condition->mutex); \ - lumiera_condition_section_.condition = NULL; \ - RESOURCE_LEAVE(nobugflag, lumiera_condition_section_.rh); \ +#define LUMIERA_CONDITION_UNLOCK \ + if (lumiera_condition_section_.condition) \ + { \ + pthread_mutex_unlock (&lumiera_condition_section_.condition->mutex); \ + lumiera_condition_section_.condition = NULL; \ + NOBUG_RESOURCE_LEAVE_RAW(lumiera_condition_section_.flag, lumiera_condition_section_.rh); \ }