void set_encoding(const std::string &stream_id, Stream::Encoding encoding);
private:
- // Mutex protecting queued_data only. Note that if you want to hold both this
- // and <mutex> below, you will need to take <mutex> before this one.
+ // Mutex protecting queued_add_clients and streams[..]->queued_data.
+ // Note that if you want to hold both this and <mutex> below,
+ // you will need to take <mutex> before this one.
mutable pthread_mutex_t queued_data_mutex;
// Deferred commands that should be run from the do_work() thread as soon as possible.
//
// Protected by <queued_data_mutex>.
std::vector<int> queued_add_clients;
- std::map<std::string, std::string> queued_data;
// All variables below this line are protected by the mutex.
mutable pthread_mutex_t mutex;