simgear/props/props.cxx: fixed deadlock in SGPropertyNode::addChildren().

Was causing fatal "Resource deadlock avoided" error with crj700.
next
Julian Smith 3 years ago
parent 876e5534fd
commit a68a0b1ccb

@ -282,7 +282,7 @@ struct SGPropertyLock
<< "\n";
ret = default_;
}
std::cerr << __FILE__ << ":" << __LINE__ << ":"
if (0) std::cerr << __FILE__ << ":" << __LINE__ << ":"
<< " name=" << name
<< " value=" << (value ? value : "<unset>")
<< " returning: " << ret
@ -2480,7 +2480,7 @@ SGPropertyNode::addChildren( const std::string& name,
SGPropertyNode_ptr node;
node = new SGPropertyNode(name, index, this);
SGPropertyNodeImpl::appendNode(exclusive, *this, node);
fireChildAdded(node);
SGPropertyNodeImpl::fireChildAdded(exclusive, *this, this /*parent*/, node);
nodes.push_back(node);
}
}

Loading…
Cancel
Save