7 #ifndef __LIBCAMERA_INTERNAL_MESSAGE_H__ 8 #define __LIBCAMERA_INTERNAL_MESSAGE_H__ 16 class BoundMethodBase;
46 static std::atomic_uint nextUserType_;
53 std::shared_ptr<BoundMethodPackBase> pack,
55 bool deleteMethod =
false);
63 BoundMethodBase *method_;
64 std::shared_ptr<BoundMethodPackBase> pack_;
static Type registerMessageType()
Reserve and register a custom user-defined message type.
Definition: message.cpp:110
First value available for user-defined messages.
Definition: message.h:29
Semaphore * semaphore() const
Retrieve the message semaphore passed to the constructor.
Definition: message.h:58
General-purpose counting semaphore.
Definition: semaphore.h:16
Asynchronous method invocation across threads.
Definition: message.h:26
Top-level libcamera namespace.
Definition: bound_method.h:15
Type type() const
Retrieve the message type.
Definition: message.h:35
Object is being moved to a different thread.
Definition: message.h:27
Object is scheduled for deletion.
Definition: message.h:28
A thread of execution.
Definition: thread.h:31
A message carrying a method invocation across threads.
Definition: message.h:49
Object * receiver() const
Retrieve the message receiver.
Definition: message.h:36
A message that can be posted to a Thread.
Definition: message.h:21
Message(Type type)
Construct a message object of type type.
Definition: message.cpp:62
Type
The message type.
Definition: message.h:24
Base object to support automatic signal disconnection.
Definition: object.h:24
Method bind and invocation.
Invalid message type.
Definition: message.h:25