void *refcount_grb(void *refcount)
{
- return ((Refcount *) refcount_inc(refcount))->obj;
+ return refcount_obj(refcount_inc(refcount));
}
void *refcount_drp(void *refcount)
return rc->obj;
}
+
+void *refcount_obj(void *refcount)
+{
+ return ((Refcount *) refcount)->obj;
+}
otherwise.
*/
+void *refcount_obj(void *refcount)
+/*
+ [Thread Safe]
+ Return referenced object.
+ This actually takes a Refcount * as argument, however void * is used to make it more
+ convenient to use the function as callback.
+*/
+
#endif // _DRAGONSTD_REFCOUNT_H_