Lines Matching refs:object
31 /** @brief A callback function used to free object and associated data */
32 typedef void (dispose_cb)( void *object );
74 /** @brief Return an unreachable object to be freed
76 * The object should already be unreachable at the point of call and
81 * @param[in] ptr Object to be released/freed
105 * object if decremented to zero. Returning previous reference count.
108 * @param[in] object The managed object
115 void *object,
121 * @param[in] object Pointer to the managed object
123 * the object
126 #define IS_ALIVE( object, ref_field ) \
127 __atomic_load_n( &(object)->ref_field, __ATOMIC_ACQUIRE )
134 * @param[in] object The managed object
136 * the object
139 #define RELEASE_REF( object, ref_field, cb ) \
141 assert( IS_ALIVE( (object), ref_field ) ); \
143 &(object)->ref_field, 1, __ATOMIC_ACQ_REL ) ) { \
144 epoch_append( object, (dispose_cb *)cb ); \