1
0
Fork 0

a bool isn't safe enough here, but a mutex shouldn't be necessary

This commit is contained in:
mfranz 2006-03-20 11:01:16 +00:00
parent 4c5e96f730
commit 7845f33c74
2 changed files with 4 additions and 4 deletions

View file

@ -682,7 +682,7 @@ FGNasalListener::FGNasalListener(SGPropertyNode_ptr node, naRef handler,
_handler(handler),
_gcKey(key),
_nas(nasal),
_active(false)
_active(0)
{
}
@ -698,7 +698,7 @@ void FGNasalListener::valueChanged(SGPropertyNode* node)
"on property " << node->getPath());
return;
}
_active = true;
_active++;
_nas->_cmdArg = node;
naContext c = naNewContext();
naModUnlock();
@ -707,7 +707,7 @@ void FGNasalListener::valueChanged(SGPropertyNode* node)
if(naGetError(c))
_nas->logError(c);
naFreeContext(c);
_active = false;
_active--;
}

View file

@ -137,7 +137,7 @@ private:
naRef _handler;
int _gcKey;
FGNasalSys* _nas;
bool _active;
unsigned int _active;
};