Tidied SyncSafe template class

This commit is contained in:
Nav
2022-04-14 22:58:00 +01:00
parent 8be1446e72
commit 75c28ba803
4 changed files with 24 additions and 35 deletions

View File

@@ -29,8 +29,9 @@ namespace Bloom
Thread& operator = (Thread&& other) = delete;
virtual ThreadState getThreadState() {
auto lock = this->state.acquireLock();
return this->state.getValue();
};
}
protected:
virtual void setThreadState(ThreadState state) {