Add some thread classes and fix SharedData with a simple mutex adapter

This commit is contained in:
Vinnie Falco
2013-09-20 02:36:47 -07:00
parent 755ab36f0d
commit 9534516b42
17 changed files with 574 additions and 332 deletions

View File

@@ -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)