mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-27 09:39:08 +01:00
committed by
Aleksandar Fabijanic
parent
200a890434
commit
27e7e532cc
@@ -59,15 +59,17 @@ Utility::TypeMap Utility::_types;
|
||||
Poco::Mutex Utility::_mutex;
|
||||
|
||||
|
||||
Utility::SQLiteMutex::SQLiteMutex(sqlite3* pDB): _pMutex(sqlite3_db_mutex(pDB))
|
||||
Utility::SQLiteMutex::SQLiteMutex(sqlite3* pDB): _pMutex((pDB) ? sqlite3_db_mutex(pDB) : 0)
|
||||
{
|
||||
sqlite3_mutex_enter(_pMutex);
|
||||
if (_pMutex)
|
||||
sqlite3_mutex_enter(_pMutex);
|
||||
}
|
||||
|
||||
|
||||
Utility::SQLiteMutex::~SQLiteMutex()
|
||||
{
|
||||
sqlite3_mutex_leave(_pMutex);
|
||||
if (_pMutex)
|
||||
sqlite3_mutex_leave(_pMutex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user