add ::use_count() method to InvalidationRecord
This commit is contained in:
parent
9a2450cafc
commit
342c112ae3
|
@ -70,6 +70,7 @@ public:
|
|||
void ref () { g_atomic_int_inc (&_ref); }
|
||||
void unref () { g_atomic_int_dec_and_test (&_ref); }
|
||||
bool in_use () { return g_atomic_int_get (&_ref) > 0; }
|
||||
int use_count () { return g_atomic_int_get (&_ref); }
|
||||
};
|
||||
|
||||
static void* invalidate_request (void* data);
|
||||
|
|
Loading…
Reference in New Issue
Block a user