int ret;
assert(channel);
+ assert(!channel->is_deleted);
channel->metadata_cache = zmalloc(
sizeof(struct consumer_metadata_cache));
uint64_t offset, bool invoked_by_timer)
{
assert(channel);
+ assert(!channel->is_deleted);
assert(channel->metadata_cache);
if (consumer_metadata_cache_is_flushed(channel, offset, invoked_by_timer)) {
channel = si->si_value.sival_ptr;
assert(channel);
+ assert(!channel->is_deleted);
if (channel->switch_timer_error) {
return;
channel = si->si_value.sival_ptr;
assert(channel);
+ assert(!channel->is_deleted);
if (channel->switch_timer_error) {
goto error;
struct itimerspec its;
assert(channel);
+ assert(!channel->is_deleted);
assert(channel->key);
if (timer_interval_us == 0) {
int ret;
assert(channel);
+ assert(!channel->is_deleted);
assert(channel->key);
ret = consumer_channel_timer_start(&channel->switch_timer, channel,
assert(channel);
assert(channel->key);
+ assert(!channel->is_deleted);
assert(!channel->monitor_timer_enabled);
ret = consumer_channel_timer_start(&channel->monitor_timer, channel,
/* Go for channel deletion! */
free_channel = true;
}
- stream->chan = NULL;
/*
* Nullify the stream reference so it is not used after deletion. The
int ret = 0;
assert(channel);
+ assert(!channel->is_deleted);
assert(ctx);
if (ctx->on_recv_channel != NULL) {
struct lttng_consumer_stream *stream = NULL;
assert(channel);
+ assert(!channel->is_deleted);
assert(ctx);
stream = consumer_stream_create(
pthread_mutex_t *current_stream_lock = NULL;
assert(channel);
+ assert(!channel->is_deleted);
assert(ctx);
/*
struct lttng_ust_ctl_consumer_channel *ust_channel;
assert(channel);
+ assert(!channel->is_deleted);
assert(attr);
assert(ust_chanp);
assert(channel->buffer_credentials.is_set);
uint64_t net_seq_idx = -1ULL;
assert(channel);
+ assert(!channel->is_deleted);
assert(ctx);
assert(sock >= 0);
assert(ctx);
assert(channel);
+ assert(!channel->is_deleted);
assert(attr);
/*
struct lttng_consumer_stream *stream, *stmp;
assert(channel);
+ assert(!channel->is_deleted);
assert(ctx);
/* Send streams to the corresponding thread. */
int ret;
assert(channel);
+ assert(!channel->is_deleted);
assert(channel->metadata_cache);
memset(&request, 0, sizeof(request));