cache = channel->metadata_cache;
+ /*
+ * XXX This consumer_data.lock should eventually be replaced by
+ * a channel lock. It protects metadata_stream read and endpoint
+ * status check.
+ */
pthread_mutex_lock(&consumer_data.lock);
+ pthread_mutex_lock(&channel->lock);
pthread_mutex_lock(&channel->metadata_cache->lock);
if (cache->rb_pushed >= offset) {
}
pthread_mutex_unlock(&channel->metadata_cache->lock);
+ pthread_mutex_unlock(&channel->lock);
pthread_mutex_unlock(&consumer_data.lock);
return ret;