db/update/Service: use C++11 initializers
This commit is contained in:
parent
d0f6131ba4
commit
3491218915
@ -43,9 +43,7 @@ UpdateService::UpdateService(EventLoop &_loop, SimpleDatabase &_db,
|
|||||||
:DeferredMonitor(_loop),
|
:DeferredMonitor(_loop),
|
||||||
db(_db), storage(_storage),
|
db(_db), storage(_storage),
|
||||||
listener(_listener),
|
listener(_listener),
|
||||||
update_thread(BIND_THIS_METHOD(Task)),
|
update_thread(BIND_THIS_METHOD(Task))
|
||||||
update_task_id(0),
|
|
||||||
walk(nullptr)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,13 +46,13 @@ class UpdateService final : DeferredMonitor {
|
|||||||
|
|
||||||
static constexpr unsigned update_task_id_max = 1 << 15;
|
static constexpr unsigned update_task_id_max = 1 << 15;
|
||||||
|
|
||||||
unsigned update_task_id;
|
unsigned update_task_id = 0;
|
||||||
|
|
||||||
UpdateQueue queue;
|
UpdateQueue queue;
|
||||||
|
|
||||||
UpdateQueueItem next;
|
UpdateQueueItem next;
|
||||||
|
|
||||||
UpdateWalk *walk;
|
UpdateWalk *walk = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UpdateService(EventLoop &_loop, SimpleDatabase &_db,
|
UpdateService(EventLoop &_loop, SimpleDatabase &_db,
|
||||||
|
Loading…
Reference in New Issue
Block a user