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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user