diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-05 17:55:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-05 17:55:04 +0200 |
commit | 35d869be3529a043f3bc5444f1503f408474896c (patch) | |
tree | e7e3628f8846cba56f654e2da65072f0fa9d7b3d | |
parent | 0d7613a5731de4114d408c03cab581c3e255df69 (diff) |
Adjust to threading API changes in libodb
-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 |