See http://pocoproject.org/forum/viewtopic.php?f=12&t=6797 Problem is that SessionFactory::create() calls ptrSI->createSession() with its mutex locked.