A message that can be posted to a Thread.
More...
A message that can be posted to a Thread.
◆ Type
The message type.
Enumerator |
---|
None | Invalid message type.
|
InvokeMessage | Asynchronous method invocation across threads.
|
ThreadMoveMessage | Object is being moved to a different thread.
|
DeferredDelete | Object is scheduled for deletion.
|
UserMessage | First value available for user-defined messages.
|
◆ Message()
Construct a message object of type type.
- Parameters
-
◆ receiver()
Object * libcamera::Message::receiver |
( |
| ) |
const |
|
inline |
Retrieve the message receiver.
- Returns
- The message receiver
◆ registerMessageType()
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.
class MyCustomMessage :
public Message
{
public:
{
}
};
Type
The message type.
Definition message.h:26
Message(Type type)
Construct a message object of type type.
Definition message.cpp:61
static Type registerMessageType()
Reserve and register a custom user-defined message type.
Definition message.cpp:109
Type type() const
Retrieve the message type.
Definition message.h:37
- Returns
- A new unique message type
◆ type()
Type libcamera::Message::type |
( |
| ) |
const |
|
inline |
Retrieve the message type.
- Returns
- The message type
The documentation for this class was generated from the following files:
- include/libcamera/base/message.h
- src/libcamera/base/message.cpp