]> git.mxchange.org Git - simgear.git/commit
nasal::Ghost: improve intrusive pointer storage and weak references.
authorThomas Geymayer <tomgey@gmail.com>
Sun, 22 Jun 2014 22:27:41 +0000 (00:27 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 23 Jun 2014 11:14:07 +0000 (13:14 +0200)
commit3bbb272ad50ba7b9e88bfd6c4a733055b9603b08
treea8f6248bedc144b0138738f3576353d6794c8b3b
parent645cae184b7bbf3a578f142d874eff20765ba8eb
nasal::Ghost: improve intrusive pointer storage and weak references.

 - Just increment/decrement reference count for intrusive
   smart pointers. No need to create an additional object
   on the heap.
 - Keep strong reference for weak pointer based ghosts
   to prevent destroying objects while beeing used.
simgear/nasal/cppbind/Ghost.hxx
simgear/nasal/cppbind/cppbind_test_ghost.cxx
simgear/nasal/cppbind/detail/nasal_traits.hxx