projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mi fix: basic formatting
[lttng-tools.git]
/
src
/
common
/
consumer-timer.h
diff --git
a/src/common/consumer-timer.h
b/src/common/consumer-timer.h
index 84061587f04ddd4a06f6234860bd0147a3b62ac4..f3fac5d25d8ce791b0767f55bea5fb5d2f6f9d13 100644
(file)
--- a/
src/common/consumer-timer.h
+++ b/
src/common/consumer-timer.h
@@
-26,24
+26,30
@@
#define LTTNG_CONSUMER_SIG_SWITCH SIGRTMIN + 10
#define LTTNG_CONSUMER_SIG_TEARDOWN SIGRTMIN + 11
#define LTTNG_CONSUMER_SIG_SWITCH SIGRTMIN + 10
#define LTTNG_CONSUMER_SIG_TEARDOWN SIGRTMIN + 11
+#define LTTNG_CONSUMER_SIG_LIVE SIGRTMIN + 12
#define CLOCKID CLOCK_MONOTONIC
/*
* Handle timer teardown race wrt memory free of private data by consumer
* signals are handled by a single thread, which permits a synchronization
#define CLOCKID CLOCK_MONOTONIC
/*
* Handle timer teardown race wrt memory free of private data by consumer
* signals are handled by a single thread, which permits a synchronization
- * point between handling of each signal.
+ * point between handling of each signal. Internal lock ensures mutual
+ * exclusion.
*/
struct timer_signal_data {
pthread_t tid; /* thread id managing signals */
int setup_done;
int qs_done;
*/
struct timer_signal_data {
pthread_t tid; /* thread id managing signals */
int setup_done;
int qs_done;
+ pthread_mutex_t lock;
};
void consumer_timer_switch_start(struct lttng_consumer_channel *channel,
unsigned int switch_timer_interval);
void consumer_timer_switch_stop(struct lttng_consumer_channel *channel);
};
void consumer_timer_switch_start(struct lttng_consumer_channel *channel,
unsigned int switch_timer_interval);
void consumer_timer_switch_stop(struct lttng_consumer_channel *channel);
-void *consumer_timer_metadata_thread(void *data);
+void consumer_timer_live_start(struct lttng_consumer_channel *channel,
+ int live_timer_interval);
+void consumer_timer_live_stop(struct lttng_consumer_channel *channel);
+void *consumer_timer_thread(void *data);
void consumer_signal_init(void);
#endif /* CONSUMER_TIMER_H */
void consumer_signal_init(void);
#endif /* CONSUMER_TIMER_H */
This page took
0.035422 seconds
and
4
git commands to generate.