diff --git a/libs/pbd/pbd/rcu.h b/libs/pbd/pbd/rcu.h index 9a6971873c..68773f3479 100644 --- a/libs/pbd/pbd/rcu.h +++ b/libs/pbd/pbd/rcu.h @@ -72,7 +72,7 @@ public: */ g_atomic_int_inc (&_active_reads); rv = *((boost::shared_ptr*)g_atomic_pointer_get (&x.gptr)); - g_atomic_int_dec_and_test (&_active_reads); + g_atomic_int_add (&_active_reads, -1); return rv; }