aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/bucket.h
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.h
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.h')
-rw-r--r--tests/libsample/bucket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libsample/bucket.h b/tests/libsample/bucket.h
index 5da528dd6..d85b92235 100644
--- a/tests/libsample/bucket.h
+++ b/tests/libsample/bucket.h
@@ -48,9 +48,12 @@ public:
int pop();
bool empty();
void lock();
- bool locked() { return m_locked;}
+ bool locked() { return m_locked; }
void unlock();
+ virtual bool virtualBlockerMethod();
+ bool callVirtualBlockerMethodButYouDontKnowThis() { return virtualBlockerMethod(); }
+
private:
std::list<int> m_data;