diff options
Diffstat (limited to 'src/common/thread.h')
| -rw-r--r-- | src/common/thread.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index b189dc764..499c151c2 100644 --- a/src/common/thread.h +++ b/src/common/thread.h | |||
| @@ -39,8 +39,7 @@ void SetCurrentThreadAffinity(u32 mask); | |||
| 39 | 39 | ||
| 40 | class Event { | 40 | class Event { |
| 41 | public: | 41 | public: |
| 42 | Event() : is_set(false) { | 42 | Event() : is_set(false) {} |
| 43 | } | ||
| 44 | 43 | ||
| 45 | void Set() { | 44 | void Set() { |
| 46 | std::lock_guard<std::mutex> lk(mutex); | 45 | std::lock_guard<std::mutex> lk(mutex); |
| @@ -71,8 +70,7 @@ private: | |||
| 71 | 70 | ||
| 72 | class Barrier { | 71 | class Barrier { |
| 73 | public: | 72 | public: |
| 74 | explicit Barrier(size_t count_) : count(count_), waiting(0), generation(0) { | 73 | explicit Barrier(size_t count_) : count(count_), waiting(0), generation(0) {} |
| 75 | } | ||
| 76 | 74 | ||
| 77 | /// Blocks until all "count" threads have called Sync() | 75 | /// Blocks until all "count" threads have called Sync() |
| 78 | void Sync() { | 76 | void Sync() { |