diff options
Diffstat (limited to 'src/mbgl/util/thread.hpp')
-rw-r--r-- | src/mbgl/util/thread.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/util/thread.hpp b/src/mbgl/util/thread.hpp index 184c6a8a12..4afaab6b7a 100644 --- a/src/mbgl/util/thread.hpp +++ b/src/mbgl/util/thread.hpp @@ -26,6 +26,11 @@ namespace util { template <class Object> class Thread { public: + Thread(const Thread&) = delete; + Thread(Thread&&) = delete; + Thread& operator=(const Thread&) = delete; + Thread& operator=(Thread&&) = delete; + template <class... Args> Thread(const ThreadContext&, Args&&... args); ~Thread(); @@ -91,11 +96,6 @@ public: private: MBGL_STORE_THREAD(tid); - Thread(const Thread&) = delete; - Thread(Thread&&) = delete; - Thread& operator=(const Thread&) = delete; - Thread& operator=(Thread&&) = delete; - template <typename Fn> auto bind(Fn fn) { return [fn, this] (auto &&... args) { |