lundi 6 juillet 2015

system.data.sqlite vs sqilte rules for threading - which is right?

sqilte docs say that serialized threading mode allows unrestricted threading and is the default mode. http://ift.tt/1dkDSrz

However system.data.sqlite help file says:

Multi-threading in SQLite must be done carefully. Here are the restrictions:

You May Clone() a SQLiteConnection object in one thread and pass the cloned object to another thread. Once passed, the other thread becomes the new owner of the cloned connection, and the original thread must not keep a reference to the clone or call any methods on the clone.

These two statements seem to disagree with each other. Or is it just an implementation detail of the .net wrapper

Aucun commentaire:

Enregistrer un commentaire