aboutsummaryrefslogtreecommitdiff
path: root/odb/details/posix
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/posix')
-rw-r--r--odb/details/posix/condition.hxx4
-rw-r--r--odb/details/posix/condition.ixx2
2 files changed, 4 insertions, 2 deletions
diff --git a/odb/details/posix/condition.hxx b/odb/details/posix/condition.hxx
index 6a86741..7a9dd2d 100644
--- a/odb/details/posix/condition.hxx
+++ b/odb/details/posix/condition.hxx
@@ -16,6 +16,8 @@ namespace odb
{
namespace details
{
+ class lock;
+
class LIBODB_EXPORT condition
{
public:
@@ -26,7 +28,7 @@ namespace odb
signal ();
void
- wait ();
+ wait (lock&);
private:
condition (const condition&);
diff --git a/odb/details/posix/condition.ixx b/odb/details/posix/condition.ixx
index 9ebd60e..0aa504b 100644
--- a/odb/details/posix/condition.ixx
+++ b/odb/details/posix/condition.ixx
@@ -30,7 +30,7 @@ namespace odb
}
inline void condition::
- wait ()
+ wait (lock&)
{
if (int e = pthread_cond_wait (&cond_, &mutex_.mutex_))
throw posix_exception (e);