From 5470a88b612e4c44ac1853342dfb9b7268c64797 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Tue, 14 Feb 2023 16:30:40 +0000 Subject: [PATCH] fix(userspace/falco): add missing constructors/methods on falco semaphore Signed-off-by: Jason Dellaluce --- userspace/falco/semaphore.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/userspace/falco/semaphore.h b/userspace/falco/semaphore.h index 78498b92..98c2fefb 100644 --- a/userspace/falco/semaphore.h +++ b/userspace/falco/semaphore.h @@ -30,6 +30,11 @@ namespace falco * @brief Creates a semaphore with the given initial counter value */ semaphore(int c = 0): count(c) {} + semaphore(semaphore&&) = default; + semaphore& operator = (semaphore&&) = default; + semaphore(const semaphore&) = delete; + semaphore& operator = (const semaphore&) = delete; + ~semaphore() = default; /** * @brief Increments the internal counter and unblocks acquirers