summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/hard-drive.svg
diff options
context:
space:
mode:
authorEric Curtin <ecurtin@redhat.com>2022-06-22 15:37:32 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-27 11:21:47 +0300
commit27cc0a6b58bcca32071cb6ab96e5ee79c75031e5 (patch)
tree2af603169c7adf4c6cea1eef29a3ff11ac01eb1e /src/qcam/assets/feathericons/hard-drive.svg
parent7ec3bfedbe22962600b438a13d9e13d37d55ce25 (diff)
README: Add some extra optional dependencies for cam sinks
KMS sink requires some DRM libraries, SDL sink requires some SDL libraries. Suggested-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Eric Curtin <ecurtin@redhat.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/qcam/assets/feathericons/hard-drive.svg')
0 files changed, 0 insertions, 0 deletions
opt">(iterations) { } protected: void run() { for (unsigned int i = 0; i < iterations_; ++i) { this_thread::sleep_for(chrono::milliseconds(50)); } } private: unsigned int iterations_; }; class ThreadTest : public Test { protected: int init() { return 0; } int run() { /* Test Thread() retrieval for the main thread. */ Thread *thread = Thread::current(); if (!thread) { cout << "Thread::current() failed to main thread" << endl; return TestFail; } if (!thread->isRunning()) { cout << "Main thread is not running" << endl; return TestFail; } /* Test starting the main thread, the test shall not crash. */ thread->start(); /* Test the running state of a custom thread. */ thread = new Thread(); thread->start(); if (!thread->isRunning()) { cout << "Thread is not running after being started" << endl; return TestFail; } thread->exit(0); thread->wait(); if (thread->isRunning()) { cout << "Thread is still running after finishing" << endl; return TestFail; } delete thread; return TestPass; }