diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-12-15 16:35:37 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-12-15 16:36:50 +0000 |
commit | 342c112ae3ccbcad9db2eac1bd9959962c427226 (patch) | |
tree | a2671c78e2610a01565127a55c66f728603a262d /libs/pbd/pbd/event_loop.h | |
parent | 9a2450cafc70b31a2cfe6a46358110c1bc4689ed (diff) |
add ::use_count() method to InvalidationRecord
Diffstat (limited to 'libs/pbd/pbd/event_loop.h')
-rw-r--r-- | libs/pbd/pbd/event_loop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/pbd/pbd/event_loop.h b/libs/pbd/pbd/event_loop.h index 09265c13d8..2b661a7e35 100644 --- a/libs/pbd/pbd/event_loop.h +++ b/libs/pbd/pbd/event_loop.h @@ -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); |