[odb-users] ODB Crashed in a multi-threaded environment

Boris Kolpackov boris at codesynthesis.com
Tue Feb 2 08:27:37 EST 2016


Hi Albert,

Albert (Jinku) Gu <albert.gu at ringcentral.com> writes:

> And the exception message is “transaction already in progress in this
> thread”.

This means you have tried to create a nested ODB transaction, something
along these lines:

void f ()
{
  transaction t (db.begin ()); // Exception.
  ...
}

void g ()
{
  transaction t (db.begin ());
  f ();
}

Boris



More information about the odb-users mailing list