projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: client/client_list lock inversion on disconnect
[lttng-tools.git]
/
include
/
lttng
/
condition
/
condition-internal.h
diff --git
a/include/lttng/condition/condition-internal.h
b/include/lttng/condition/condition-internal.h
index 98a8309421684aa6d607ceb51834d0ed09743875..405199b428fcae3004e3b5fdb97caaaf9e993b86 100644
(file)
--- a/
include/lttng/condition/condition-internal.h
+++ b/
include/lttng/condition/condition-internal.h
@@
-14,6
+14,7
@@
#include <common/payload.h>
#include <stdbool.h>
#include <urcu/list.h>
#include <common/payload.h>
#include <stdbool.h>
#include <urcu/list.h>
+#include <urcu/ref.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdint.h>
#include <sys/types.h>
@@
-29,6
+30,8
@@
typedef ssize_t (*condition_create_from_payload_cb)(
struct lttng_condition **condition);
struct lttng_condition {
struct lttng_condition **condition);
struct lttng_condition {
+ /* Reference counting is only exposed to internal users. */
+ struct urcu_ref ref;
enum lttng_condition_type type;
condition_validate_cb validate;
condition_serialize_cb serialize;
enum lttng_condition_type type;
condition_validate_cb validate;
condition_serialize_cb serialize;
@@
-42,6
+45,12
@@
struct lttng_condition_comm {
char payload[];
};
char payload[];
};
+LTTNG_HIDDEN
+void lttng_condition_get(struct lttng_condition *condition);
+
+LTTNG_HIDDEN
+void lttng_condition_put(struct lttng_condition *condition);
+
LTTNG_HIDDEN
void lttng_condition_init(struct lttng_condition *condition,
enum lttng_condition_type type);
LTTNG_HIDDEN
void lttng_condition_init(struct lttng_condition *condition,
enum lttng_condition_type type);
This page took
0.024356 seconds
and
4
git commands to generate.