diff options
Diffstat (limited to 'src/libcamera/include/message.h')
-rw-r--r-- | src/libcamera/include/message.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcamera/include/message.h b/src/libcamera/include/message.h index 1cfde566..311755cc 100644 --- a/src/libcamera/include/message.h +++ b/src/libcamera/include/message.h @@ -15,6 +15,7 @@ namespace libcamera { class BoundMethodBase; class Object; +class Semaphore; class Thread; class Message @@ -48,14 +49,18 @@ class InvokeMessage : public Message { public: InvokeMessage(BoundMethodBase *method, void *pack, + Semaphore *semaphore = nullptr, bool deleteMethod = false); ~InvokeMessage(); + Semaphore *semaphore() const { return semaphore_; } + void invoke(); private: BoundMethodBase *method_; void *pack_; + Semaphore *semaphore_; bool deleteMethod_; }; |