Up |
_sqliteThreadsafe
Threading state : strictly defined at the compile-time. To change this, the library must be recompiled.
- mono-thread (0) : sqlite3 is not safe if another thread is used simultaneously. If this mode is set, it can not be changed even if _sqliteOpenFileEx is set with SQLITE_OPEN_NOMUTEX flag (in this case, the flag will be ignored).
- mode serialized (1) : sqlite3 supports the multi-thread if _sqliteOpenFileEx is set with SQLITE_OPEN_NOMUTEX.
- mode multi-thread (2) : sqlite3 supports the multi-thread if one thread is used to each connexion. It is possible to change that, for a given database, with _sqliteOpenFileEx and the flag SQLITE_OPEN_FULLMUTEX
However, the sqlite developers don't recommend modes 1 and 2. See the FAQ : http://www.sqlite.org/faq.html (" Is SQLite threadsafe? " answer 6).
Prototype :
fun [] I
Return : I 0 if mono-thread, 1 if serialized, 2 if multi-thread.
See also :
Example :