libcamera
v0.0.0
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 , 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.
The message type.
Enumerator | |
---|---|
None | Invalid message type. |
InvokeMessage | Asynchronous method invocation across threads. |
ThreadMoveMessage | Object is being moved to a different thread. |
UserMessage | First value available for user-defined messages. |
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 method reserves and returns the next available user-defined message type.
The recommended way to use this method is to subclass Message and provide a static accessor for the custom message type.
|
inline |
Retrieve the message type.