81 grklog.warn(
"Attempt to unref a released object");
82 throw std::runtime_error(
"Attempt to unref a released object");
RefCounted & operator=(const RefCounted &)=delete
RefCounted(const RefCounted &)=delete
void unref()
Definition RefCounted.h:77
RefCounted * ref()
Definition RefCounted.h:71
std::atomic< uint32_t > ref_count
Definition RefCounted.h:98
virtual ~RefCounted()=default
RefCounted()
Definition RefCounted.h:70
GRK_API grk_object *GRK_CALLCONV grk_object_ref(grk_object *obj)
Increments the reference count on a Grok object.
Definition grok.cpp:340
GRK_API void GRK_CALLCONV grk_object_unref(grk_object *obj)
Decrements the reference count on a Grok object.
Definition grok.cpp:350
ResWindow.
Definition CompressedChunkCache.h:36
ILogger & grklog
Definition Logger.cpp:24
T * grk_unref(T *w)
Definition RefCounted.h:31
T * grk_ref(T *w)
Definition RefCounted.h:39
Definition RefCounted.h:48
void operator()(void *obj) const
Definition RefCounted.h:49
Definition RefCounted.h:57
void operator()(T *ptr) const
Definition RefCounted.h:58