libcamera
v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
|
A message that can be posted to a Thread. More...
Public Types | |
enum | Type { None = 0, InvokeMessage = 1, ThreadMoveMessage = 2, DeferredDelete = 3, UserMessage = 1000 } |
The message type. More... | |
Public Member Functions | |
Message (Type type) | |
Construct a message object of type type. More... | |
Type | type () const |
Retrieve the message type. More... | |
Object * | receiver () const |
Retrieve the message receiver. More... | |
Static Public Member Functions | |
static Type | registerMessageType () |
Reserve and register a custom user-defined message type. More... | |
Friends | |
class | Thread |
A message that can be posted to a Thread.
libcamera::Message::Message | ( | Message::Type | type | ) |
Construct a message object of type type.
[in] | type | The message type |
|
inline |
Retrieve the message receiver.
|
static |
Reserve and register a custom user-defined message type.
Custom message types use values starting at Message::UserMessage. Assigning custom types manually may lead to accidental duplicated types. To avoid this problem, this function reserves and returns the next available user-defined message type.
The recommended way to use this function is to subclass Message and provide a static accessor for the custom message type.
|
inline |
Retrieve the message type.