Change klass instance type on RMI
authorSangwan Kwon <sangwan.kwon@samsung.com>
Fri, 27 Dec 2019 06:38:13 +0000 (15:38 +0900)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Mon, 30 Dec 2019 04:51:16 +0000 (13:51 +0900)
commitb2fd1180b3cba2d41e5af50e4390d9720332084e
tree7ce495a2efa5b5a780d13f49d84e71ce523ccb60
parent089f2bb04c3ad8435bd96364b5969c216a22ce8c
Change klass instance type on RMI

There are two main issues that the type is changed from shared_ptr
to reference.

First, if klass instance type is shared_ptr,
the destuctor of klass should be public not private.
(This coflicts with meyer singleton.)

Second, if we pass this pointer of object to EXPOSE method,
the object indicated this pointer should be destroyed by shared_ptr.
In such a case, the object should not be static type.
(It causes SEGFAULT by deallocating invalid pointer.)

Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
CMakeLists.txt
src/vist/klass/functor.hpp
src/vist/klass/tests/functor.cpp
src/vist/main/main.cpp
src/vist/rmi/gateway.cpp
src/vist/rmi/gateway.hpp
src/vist/rmi/tests/rmi.cpp
src/vist/service/tests/core.cpp
src/vist/service/vistd.cpp
src/vist/service/vistd.hpp