Wayverb
scoped_thread.h
1 #pragma once
2 
3 #include <thread>
4 
5 namespace util {
6 
9 class scoped_thread final {
10 public:
11  scoped_thread() = default;
12  explicit scoped_thread(std::thread t);
13  ~scoped_thread() noexcept;
14 
15  scoped_thread(scoped_thread&&) noexcept = default;
16  scoped_thread& operator=(scoped_thread&&) noexcept = default;
17 
18 private:
19  std::thread t_;
20 };
21 
22 } // namespace util
Definition: allocator.h:6
Definition: scoped_thread.h:9