SQLite Forum

sqlite3_threadsafe() return value
> I am inclined to say there is no doc bug here.

I think _"unable to distinguish between multi-thread and serialized mode"_ is clearly wrong, but maybe I'm interpreting that totally wrong.

I suggest changing the first sentence of that paragraph to:

_"The return value of the sqlite3_threadsafe() interface is determined by the compile-time threading mode selection, as set by the compile-time option SQLITE_THREADSAFE"_

I suggest rewording the third sentence:

_"If either the multi-thread or serialized modes are selected, then sqlite3_threadsafe() returns non-zero."_

I suggest changing the last sentence to...:

_"The sqlite3_threadsafe() interface is unable to report start-time or run-time mode changes."_

That's my 2 cents :)