projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: fix: Match stated automake requirement
[lttng-tools.git]
/
include
/
lttng
/
ref-internal.hpp
diff --git
a/include/lttng/ref-internal.hpp
b/include/lttng/ref-internal.hpp
index a02ae4cdc1229a627226e74991cebb49887b4820..13c1a69eedb89ee9e8191f0a337a88b17721cc49 100644
(file)
--- a/
include/lttng/ref-internal.hpp
+++ b/
include/lttng/ref-internal.hpp
@@
-10,24
+10,21
@@
*
*/
*
*/
-
-typedef void (*lttng_release_func)(void *);
+using lttng_release_func = void (*)(void *);
struct lttng_ref {
unsigned long count;
lttng_release_func release;
};
struct lttng_ref {
unsigned long count;
lttng_release_func release;
};
-static inline
-void lttng_ref_init(struct lttng_ref *ref, lttng_release_func release)
+static inline void lttng_ref_init(struct lttng_ref *ref, lttng_release_func release)
{
LTTNG_ASSERT(ref);
ref->count = 1;
ref->release = release;
}
{
LTTNG_ASSERT(ref);
ref->count = 1;
ref->release = release;
}
-static inline
-void lttng_ref_get(struct lttng_ref *ref)
+static inline void lttng_ref_get(struct lttng_ref *ref)
{
LTTNG_ASSERT(ref);
ref->count++;
{
LTTNG_ASSERT(ref);
ref->count++;
@@
-35,8
+32,7
@@
void lttng_ref_get(struct lttng_ref *ref)
LTTNG_ASSERT(ref->count);
}
LTTNG_ASSERT(ref->count);
}
-static inline
-void lttng_ref_put(struct lttng_ref *ref)
+static inline void lttng_ref_put(struct lttng_ref *ref)
{
LTTNG_ASSERT(ref);
/* Underflow check. */
{
LTTNG_ASSERT(ref);
/* Underflow check. */
This page took
0.024605 seconds
and
4
git commands to generate.