|
libcamera
v0.1.0
Supporting cameras in Linux since 2019
|
Go to the documentation of this file.
11 #include <sys/types.h>
14 #include <libcamera/base/private.h>
22 class EventDispatcher;
35 void exit(
int code = 0);
57 void postMessage(std::unique_ptr<Message> msg,
Object *receiver);
58 void removeMessages(
Object *receiver);
64 void moveObject(
Object *
object);
Base object to support automatic signal disconnection.
Definition: object.h:25
std::chrono::steady_clock::duration duration
The libcamera duration related to libcamera::utils::clock.
Definition: utils.h:72
Interface to manage the libcamera events and timers.
Definition: event_dispatcher.h:20
void dispatchMessages(Message::Type type=Message::Type::None)
Dispatch posted messages for this thread.
Definition: thread.cpp:602
A thread of execution.
Definition: thread.h:29
Thread-local internal data.
Definition: thread.cpp:140
Thread()
Create a thread.
Definition: thread.cpp:265
void exit(int code=0)
Stop the thread's event loop.
Definition: thread.cpp:393
bool isRunning()
Check if the thread is running.
Definition: thread.cpp:453
static Thread * current()
Retrieve the Thread instance for the current thread.
Definition: thread.cpp:469
Type
The message type.
Definition: message.h:26
Top-level libcamera namespace.
Definition: backtrace.h:17
virtual void run()
Main function of the thread.
Definition: thread.cpp:366
Miscellaneous utility functions.
int exec()
Enter the event loop.
Definition: thread.cpp:332
EventDispatcher * eventDispatcher()
Retrieve the event dispatcher.
Definition: thread.cpp:501
Thread wrapper for the main thread.
Definition: thread.cpp:172
Signal & slot implementation.
void start()
Start the thread.
Definition: thread.cpp:280
Generic signal and slot communication mechanism.
Definition: signal.h:39
static pid_t currentId()
Retrieve the ID of the current thread.
Definition: thread.cpp:485
Signal finished
Signal the end of thread execution.
Definition: thread.h:40
bool wait(utils::duration duration=utils::duration::max())
Wait for the thread to finish.
Definition: thread.cpp:418