Replace all uses of AMTL threads with STL threads.

This also rewrites the work loop for threaded queries. It has been
simplified significantly.
This commit is contained in:
David Anderson
2020-05-16 22:35:56 -07:00
parent 15023777f4
commit a253e175bb
16 changed files with 84 additions and 98 deletions
+2 -2
View File
@@ -33,7 +33,7 @@
#define _INCLUDE_SQLITE_SOURCEMOD_DATABASE_H_
#include <am-refcounting-threadsafe.h>
#include <am-thread-utils.h>
#include <mutex>
#include "SqDriver.h"
class SqDatabase
@@ -70,7 +70,7 @@ public:
}
private:
sqlite3 *m_sq3;
ke::AutoPtr<ke::Mutex> m_FullLock;
std::mutex m_FullLock;
bool m_Persistent;
String m_LastError;
int m_LastErrorCode;