Changes to increase responsive of ping on low end devices like RPi - part 2
@@ -1137,6 +1137,8 @@ bool stdInsert = (arr == std::string::npos || arr > 8);
NULL,
&zErrMsg);
m_writeAccessOngoing.fetch_sub(1);
+ if (m_writeAccessOngoing == 0)
+ db_cv.notify_all();
// Check exec result
if (rc != SQLITE_OK )
@@ -1508,6 +1510,8 @@ SQLBuffer sql;
NULL,
&zErrMsg);
m_writeAccessOngoing.fetch_sub(1);
+ if (m_writeAccessOngoing == 0)
+ db_cv.notify_all();
// Check result code
if (rc != SQLITE_OK)
@@ -1603,6 +1607,8 @@ SQLBuffer sql;
NULL,
&zErrMsg);
m_writeAccessOngoing.fetch_sub(1);
+ if (m_writeAccessOngoing == 0)
+ db_cv.notify_all();
// Check result code
if (rc == SQLITE_OK)
