Commit f3b2a586 authored by Max Kellermann's avatar Max Kellermann

lib/upnp/WorkQueue: use C++11 initializers

parent c6f89c42
......@@ -52,11 +52,11 @@ class WorkQueue {
// Status
// Worker threads having called exit
unsigned n_workers_exited;
bool ok;
unsigned n_workers_exited = 0;
bool ok = false;
unsigned n_threads;
pthread_t *threads;
unsigned n_threads = 0;
pthread_t *threads = nullptr;
// Synchronization
std::queue<T> queue;
......@@ -69,10 +69,7 @@ public:
* @param _name for message printing
*/
WorkQueue(const char *_name)
:name(_name),
n_workers_exited(0),
ok(false),
n_threads(0), threads(nullptr)
:name(_name)
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment