diff options
Diffstat (limited to 'zen/thread.h')
-rw-r--r-- | zen/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/thread.h b/zen/thread.h index 5bb02a0e..f6c3ae01 100644 --- a/zen/thread.h +++ b/zen/thread.h @@ -398,8 +398,8 @@ InterruptibleThread::InterruptibleThread(Function&& f) : intStatus_(std::make_sh threadCompleted = pFinished.get_future(); stdThread = std::thread([f = std::forward<Function>(f), - intStatus = this->intStatus_, - pFinished = std::move(pFinished)]() mutable + intStatus = this->intStatus_, + pFinished = std::move(pFinished)]() mutable { assert(!impl::refThreadLocalInterruptionStatus()); impl::refThreadLocalInterruptionStatus() = intStatus.get(); |