summaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttype.h
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-01-15 15:39:41 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-01-15 20:12:25 -0300
commit72ca828dde351cc3b715eec5447fe4ea5c46ec01 (patch)
treee8cc0a754e3953fd629c432b9ac44eac22f7a8b5 /tests/libsample/objecttype.h
parent007d8cf6955f0f99a41bad8c69c9da7789d6bbe8 (diff)
downloadshiboken-72ca828dde351cc3b715eec5447fe4ea5c46ec01.tar.gz
shiboken-72ca828dde351cc3b715eec5447fe4ea5c46ec01.tar.xz
shiboken-72ca828dde351cc3b715eec5447fe4ea5c46ec01.zip
Adding new tests related to threads/GIL locking
- Event loop - calling virtual methods from C++ - Event loop with thread - calling virtuals from C++ along with accessing the binding from another python thread - Thread locking - blocker C++ method that is unlocked from another python thread For these tests, a new ObjectType subclass was added, Bucket, which is just a container for the producer/consumer tests and has the lock/unlock method. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/libsample/objecttype.h')
-rw-r--r--tests/libsample/objecttype.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h
index d7a7ae1c..3fe606de 100644
--- a/tests/libsample/objecttype.h
+++ b/tests/libsample/objecttype.h
@@ -85,6 +85,7 @@ public:
// Returns true if the event is processed.
virtual bool event(Event* event);
+ static int processEvent(ObjectTypeList objects, Event *event);
// This nonsense method emulate QWidget.setLayout method
// All layout objects will became children of this object.