Hello all,

I am writing an extension library that contains some extensions, i.e.
custom functions and collations. Some of these objects use some private
data members in order to perform their calculations.

This extension library will be used by an embedded server that must handle
many database connections to the same database file in different threads
and it uses shared cache. I need to know whether SQLite synchronizes its
invocations to the callbacks of these objects or whether I have to take
care of protecting the data members these callbacks are using from
concurrent access in my own code.

>From what I understand, sqlite creates an instance of each extension object
for each active sqlite3* database connection, therefore in single-thread
and multi-thread mode I don't need to worry because sqlite3 itself may
crash if a connection is accessed simultaneously by many threads. In
serialized mode is it possibe for two threads using a single sqlite3*
database connection to invoke an extension object at the same time without
some sort of internal synchronization in sqlite3.dll?

Thanks in advance.

Constantine
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to