+ intrusive_ptr_release(cond);
+ }
+ XBT_OUT();
+}
+
+
+void intrusive_ptr_add_ref(s_smx_cond_t *cond)
+{
+ auto previous = cond->refcount_.fetch_add(1);
+ xbt_assert(previous != 0);
+}
+
+void intrusive_ptr_release(s_smx_cond_t *cond)
+{
+ if (cond->refcount_.fetch_sub(1) == 1) {