Small, Fast, Reliable.
Choose any three.

About Sitemap Documentation Download License News Developers Support

## SQLite C Interface

### Test To See If The Library Is Threadsafe

>     int sqlite3_threadsafe(void);

This routine returns TRUE (nonzero) if SQLite was compiled with all of its mutexes enabled and is thus threadsafe. It returns zero if the particular build is for single-threaded operation only.

Really all this routine does is return true if SQLite was compiled with the -DSQLITE_THREADSAFE=1 option and false if compiled with -DSQLITE_THREADSAFE=0. If SQLite uses an application-defined mutex subsystem, malloc subsystem, collating sequence, VFS, SQL function, progress callback, commit hook, extension, or other accessories and these add-ons are not threadsafe, then clearly the combination will not be threadsafe either. Hence, this routine never reports that the library is guaranteed to be threadsafe, only when it is guaranteed not to be.

This is an experimental API and may go away or change in future releases.

See also lists of Objects, Constants, and Functions.

This page last modified 2007/11/22 00:41:31 UTC