projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a2450c
)
add ::use_count() method to InvalidationRecord
author
Paul Davis
<paul@linuxaudiosystems.com>
Thu, 15 Dec 2016 16:35:37 +0000
(16:35 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Thu, 15 Dec 2016 16:36:50 +0000
(16:36 +0000)
libs/pbd/pbd/event_loop.h
patch
|
blob
|
history
diff --git
a/libs/pbd/pbd/event_loop.h
b/libs/pbd/pbd/event_loop.h
index 09265c13d85b3ded97cf4e9658d35183e250b255..2b661a7e3571155d583a5f9317b51425b4f7ef42 100644
(file)
--- 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);