aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/bucket.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-01-18 11:00:39 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-01-18 15:02:14 -0300
commitf8e64fa28917dfd7446f8710ec2a1a33ef06cebc (patch)
tree7a368c4f126e7a288894b0a1a4a1ff3814e92d5f /tests/libsample/bucket.cpp
parentcd23ce8002ea34c5baabf060b3065b9cbb7618a3 (diff)
Expanded thread locking tests with two more cases.
Added a virtual method marked to allow threads and tests for C++ calling it and also a Python reimplemented version.
Diffstat (limited to 'tests/libsample/bucket.cpp')
-rw-r--r--tests/libsample/bucket.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libsample/bucket.cpp b/tests/libsample/bucket.cpp
index d9f42a0ac..d0da98a0c 100644
--- a/tests/libsample/bucket.cpp
+++ b/tests/libsample/bucket.cpp
@@ -69,3 +69,11 @@ void Bucket::unlock()
{
m_locked = false;
}
+
+bool Bucket::virtualBlockerMethod()
+{
+ lock();
+ // The return value was added just for diversity sake.
+ return true;
+}
+