summaryrefslogtreecommitdiffstats
path: root/src/server/Task.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 01:20:27 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:20:27 -0400
commit44381dbda9dbf8d20894789fe8e3ea941b70a1d0 (patch)
tree27c4da20f5a796825f7485aa7a1f447ff423f0f6 /src/server/Task.hpp
parent9126ed67acf17bb2009430cb6de25b2ffd783d8e (diff)
downloadingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.gz
ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.bz2
ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.zip
Use default member initialization
Diffstat (limited to 'src/server/Task.hpp')
-rw-r--r--src/server/Task.hpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/server/Task.hpp b/src/server/Task.hpp
index a7657499..7a50fe8e 100644
--- a/src/server/Task.hpp
+++ b/src/server/Task.hpp
@@ -43,9 +43,6 @@ public:
Task(Mode mode, BlockImpl* block = nullptr)
: _block(block)
, _mode(mode)
- , _done_end(0)
- , _next(0)
- , _done(false)
{
assert(!(mode == Mode::SINGLE && !block));
}
@@ -110,12 +107,12 @@ private:
_children.emplace_back(std::move(t));
}
- Children _children; ///< Vector of child tasks
- BlockImpl* _block; ///< Used for SINGLE only
- Mode _mode; ///< Execution mode
- unsigned _done_end; ///< Index of rightmost done sub-task
- std::atomic<unsigned> _next; ///< Index of next sub-task
- std::atomic<bool> _done; ///< Completion phase
+ Children _children; ///< Vector of child tasks
+ BlockImpl* _block; ///< Used for SINGLE only
+ Mode _mode; ///< Execution mode
+ unsigned _done_end{0}; ///< Index of rightmost done sub-task
+ std::atomic<unsigned> _next{0}; ///< Index of next sub-task
+ std::atomic<bool> _done{false}; ///< Completion phase
};
} // namespace server