[odb-users] mysql crash in multithreaded application

Boris Kolpackov boris at codesynthesis.com
Tue Jun 20 08:37:48 EDT 2017

Wolfgang Haupt <haupt.wolfgang at gmail.com> writes:

> "So as long as you don't share connections or transactions between
> threads, it should work."
> Does it mean the default mysql factory is not thread safe?


> I had a look at the threads sample and you also share the db instance,
> with your worker tasks.

Yes, the database instance can be shared (as in, accessed simultaneously
by multiple threads). Connections and transactions that you get from this
shared database instance cannot.


More information about the odb-users mailing list