mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add some thread classes and fix SharedData with a simple mutex adapter
This commit is contained in:
@@ -299,7 +299,7 @@ public:
|
||||
|
||||
void stateChanged ()
|
||||
{
|
||||
SharedData <SharedState>::ReadAccess state (sharedState);
|
||||
SharedData <SharedState>::ConstAccess state (sharedState);
|
||||
|
||||
// (read state)
|
||||
}
|
||||
@@ -308,7 +308,7 @@ public:
|
||||
|
||||
void changeState ()
|
||||
{
|
||||
SharedData <State>::WriteAccess state (sharedState);
|
||||
SharedData <State>::Access state (sharedState);
|
||||
|
||||
// (read and write state)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user