summaryrefslogtreecommitdiff
path: root/test/pipeline/rkisp1/meson.build
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-01 19:31:55 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-02 01:11:46 +0300
commit554cbc0fa8984ce7109c3b85d13900a890e8563e (patch)
treeedc92473467045ab0b3d49978f9dfbe5eabb82d6 /test/pipeline/rkisp1/meson.build
parent4866bf6fe7e080b6b7f0842353d2383a3273f1c5 (diff)
libcamera: media_device: Expose media device API version number
Add a MediaDevice::version() function to expose the media device API version number. This can be useful to support driver API changes in pipeline handlers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/pipeline/rkisp1/meson.build')
0 files changed, 0 insertions, 0 deletions
~TestObject() { /* Count the deletions from the correct thread. */ if (thread() == Thread::current()) (*deleteCount_)++; } unsigned int *deleteCount_; }; class NewThread : public Thread { public: NewThread(Object *obj) : object_(obj) { } protected: void run() { object_->deleteLater(); } private: Object *object_; }; class ObjectDeleteTest : public Test { protected: int run() { /* * Test that deferred deletion is executed from the object's * thread, not the caller's thread. */ unsigned int count = 0; TestObject *obj = new TestObject(&count); NewThread thread(obj); thread.start(); thread.wait(); Thread::current()->dispatchMessages(Message::Type::DeferredDelete); if (count != 1) { cout << "Failed to dispatch DeferredDelete (" << count << ")" << endl; return TestFail; } /* * Test that multiple calls to deleteLater() delete the object * once only. */ count = 0; obj = new TestObject(&count); obj->deleteLater(); obj->deleteLater(); Thread::current()->dispatchMessages(Message::Type::DeferredDelete);