Reviewed-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
cache = channel->metadata_cache;
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);
pthread_mutex_lock(&consumer_data.lock);
pthread_mutex_lock(&channel->lock);
pthread_mutex_lock(&channel->metadata_cache->lock);