Merge pull request #3574 from peat-psuwit/for-upstream/zmdb-thread-init
db: start the processing thread after all fields are initializedpull/3609/head
parent
bf661d2186
commit
fc2e5aa135
|
@ -229,9 +229,10 @@ zmDbRow::~zmDbRow() {
|
|||
}
|
||||
|
||||
zmDbQueue::zmDbQueue() :
|
||||
mThread(&zmDbQueue::process, this),
|
||||
mTerminate(false)
|
||||
{ }
|
||||
{
|
||||
mThread = std::thread(&zmDbQueue::process, this);
|
||||
}
|
||||
|
||||
zmDbQueue::~zmDbQueue() {
|
||||
stop();
|
||||
|
|
Loading…
Reference in New Issue