simgear/structure/commands.cxx: removed assert that fires if we don't use thread-cpu affinities.
This commit is contained in:
@@ -75,9 +75,6 @@ void SGCommandMgr::setImplicitRoot(SGPropertyNode *root)
|
|||||||
void
|
void
|
||||||
SGCommandMgr::addCommandObject (const std::string &name, Command* command)
|
SGCommandMgr::addCommandObject (const std::string &name, Command* command)
|
||||||
{
|
{
|
||||||
#if !defined(NDEBUG)
|
|
||||||
assert(SGThread::current() == d->_mainThreadId);
|
|
||||||
#endif
|
|
||||||
if (d->_commands.find(name) != d->_commands.end())
|
if (d->_commands.find(name) != d->_commands.end())
|
||||||
throw sg_exception("duplicate command name:" + name);
|
throw sg_exception("duplicate command name:" + name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user