Make ThreadGroup inherit NonCopyable

This commit is contained in:
nsubiron 2018-10-02 14:13:47 +02:00
parent 6752ea12c2
commit 13b9723c46
1 changed files with 3 additions and 4 deletions

View File

@ -6,19 +6,18 @@
#pragma once
#include "carla/NonCopyable.h"
#include <thread>
#include <vector>
namespace carla {
class ThreadGroup {
class ThreadGroup : private NonCopyable {
public:
ThreadGroup() = default;
ThreadGroup(const ThreadGroup &) = delete;
ThreadGroup &operator=(const ThreadGroup &) = delete;
~ThreadGroup() {
JoinAll();
}