]> git.mxchange.org Git - flightgear.git/commit
Rework the naModLock()/naModUnlock() semantics to be more
authorandy <andy>
Wed, 19 Jul 2006 19:46:53 +0000 (19:46 +0000)
committerandy <andy>
Wed, 19 Jul 2006 19:46:53 +0000 (19:46 +0000)
commit503cc54a935d5387238c1755ac6c37b752864331
treec92664f48981278211082854eedda6d45705aaeb
parentc1d06064c8eec5f058f031031cde944489a31b40
Rework the naModLock()/naModUnlock() semantics to be more
maintainable.  The rules are simple (extension functions are called
*with* the lock, which must be dropped before calling naCall(), which
grabs it) but the tracking of when the lock was held was getting a
little confused.  Keep a "nasal call depth" count in the subsystem to
figure out whether we are making a sub-call and thus hold the lock.
src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx