diff options
-rw-r--r-- | odb/sqlite/connection-factory.cxx | 4 | ||||
-rw-r--r-- | odb/sqlite/connection.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/odb/sqlite/connection-factory.cxx b/odb/sqlite/connection-factory.cxx index 317d048..4444167 100644 --- a/odb/sqlite/connection-factory.cxx +++ b/odb/sqlite/connection-factory.cxx @@ -141,7 +141,7 @@ namespace odb while (in_use_ != 0) { waiters_++; - cond_.wait (); + cond_.wait (l); waiters_--; } } @@ -178,7 +178,7 @@ namespace odb // Wait until someone releases a connection. // waiters_++; - cond_.wait (); + cond_.wait (l); waiters_--; } } diff --git a/odb/sqlite/connection.cxx b/odb/sqlite/connection.cxx index b150470..2425244 100644 --- a/odb/sqlite/connection.cxx +++ b/odb/sqlite/connection.cxx @@ -177,7 +177,7 @@ namespace odb details::lock l (unlock_mutex_); while (!unlocked_) - unlock_cond_.wait (); + unlock_cond_.wait (l); #else translate_error (SQLITE_LOCKED, *this); #endif |