From 4f15a6f7d99a1da0defe7a1074b56d917c77ab2d Mon Sep 17 00:00:00 2001 From: maelstrom Date: Thu, 28 May 2026 17:19:36 +0200 Subject: [PATCH] fix: prevent accidental copying of Mutex --- engine/include/fishbone/thread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/include/fishbone/thread.h b/engine/include/fishbone/thread.h index b210e17..014bd9b 100644 --- a/engine/include/fishbone/thread.h +++ b/engine/include/fishbone/thread.h @@ -28,6 +28,9 @@ namespace fishbone { Mutex(); ~Mutex(); + Mutex(const Mutex&) = delete; + Mutex& operator=(const Mutex&) = delete; + void lock(); void unlock(); };