Tidied structure of all classes within the entire code base

Also some other small bits of tidying
This commit is contained in:
Nav
2021-10-06 21:12:31 +01:00
parent 1aef5bba79
commit 6edfb7376a
179 changed files with 3446 additions and 3493 deletions

View File

@@ -18,8 +18,10 @@ namespace Bloom
class Thread
{
private:
SyncSafe<ThreadState> state = SyncSafe<ThreadState>(ThreadState::UNINITIALISED);
public:
virtual ThreadState getThreadState() {
return this->state.getValue();
};
protected:
virtual void setThreadState(ThreadState state) {
@@ -42,9 +44,7 @@ namespace Bloom
pthread_setname_np(pthread_self(), name.c_str());
}
public:
virtual ThreadState getThreadState() {
return this->state.getValue();
};
private:
SyncSafe<ThreadState> state = SyncSafe<ThreadState>(ThreadState::UNINITIALISED);
};
}