diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-11-21 21:47:06 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-11-21 21:47:08 -0500 |
| commit | 1eb9558dd8440df981de1b3be9d486650e26ad0f (patch) | |
| tree | a2a89ba90622dabbb0d5b6466f986dbb72f05f66 /src/common/thread.cpp | |
| parent | e5a57346ea13e735ea0157019bb2eae8d8d53428 (diff) | |
common/thread: Make Barrier's 'count' member non-const
While admirable as a means to ensure immutability, this has the
unfortunate downside of making the class non-movable. std::move cannot
actually perform a move operation if the provided operand has const data
members (std::move acts as an operation to "slide" resources out of an
object instance). Given Barrier contains move-only types such as
std::mutex, this can lead to confusing error messages if an object ever
contained a Barrier instance and said object was attempted to be moved.
Diffstat (limited to 'src/common/thread.cpp')
0 files changed, 0 insertions, 0 deletions
