7 #ifndef __LIBCAMERA_INTERNAL_MESSAGE_H__ 8 #define __LIBCAMERA_INTERNAL_MESSAGE_H__ 16 class BoundMethodBase;
45 static std::atomic_uint nextUserType_;
52 std::shared_ptr<BoundMethodPackBase> pack,
54 bool deleteMethod =
false);
62 BoundMethodBase *method_;
63 std::shared_ptr<BoundMethodPackBase> pack_;
static Type registerMessageType()
Reserve and register a custom user-defined message type.
Definition: message.cpp:108
First value available for user-defined messages.
Definition: message.h:28
Semaphore * semaphore() const
Retrieve the message semaphore passed to the constructor.
Definition: message.h:57
General-purpose counting semaphore.
Definition: semaphore.h:16
Asynchronous method invocation across threads.
Definition: message.h:26
Definition: bound_method.h:15
Type type() const
Retrieve the message type.
Definition: message.h:34
Object is being moved to a different thread.
Definition: message.h:27
A thread of execution.
Definition: thread.h:30
A message carrying a method invocation across threads.
Definition: message.h:48
Object * receiver() const
Retrieve the message receiver.
Definition: message.h:35
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:60
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