Make ThreadGroup inherit NonCopyable
This commit is contained in:
parent
6752ea12c2
commit
13b9723c46
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue