thread must die if g_killed set;

pull/128/head
Bryan Biedenkapp 3 months ago
parent b609bcc843
commit 0dc2c37056

@ -814,6 +814,11 @@ namespace {
size_t queueDepth = state->queue.pendingCount.load(std::memory_order_acquire);
if (queueDepth == 0U) {
std::this_thread::sleep_for(std::chrono::milliseconds(SQLITE_BATCH_WAIT_MS));
if (g_killed) {
delete th;
return nullptr;
}
continue;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.