lib/upnp/WorkQueue: use C++11 initializers
This commit is contained in:
@@ -52,11 +52,11 @@ class WorkQueue {
|
|||||||
|
|
||||||
// Status
|
// Status
|
||||||
// Worker threads having called exit
|
// Worker threads having called exit
|
||||||
unsigned n_workers_exited;
|
unsigned n_workers_exited = 0;
|
||||||
bool ok;
|
bool ok = false;
|
||||||
|
|
||||||
unsigned n_threads;
|
unsigned n_threads = 0;
|
||||||
pthread_t *threads;
|
pthread_t *threads = nullptr;
|
||||||
|
|
||||||
// Synchronization
|
// Synchronization
|
||||||
std::queue<T> queue;
|
std::queue<T> queue;
|
||||||
@@ -69,10 +69,7 @@ public:
|
|||||||
* @param _name for message printing
|
* @param _name for message printing
|
||||||
*/
|
*/
|
||||||
WorkQueue(const char *_name)
|
WorkQueue(const char *_name)
|
||||||
:name(_name),
|
:name(_name)
|
||||||
n_workers_exited(0),
|
|
||||||
ok(false),
|
|
||||||
n_threads(0), threads(nullptr)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user