Use destructor attribute for disposing thread 84/264984/3
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 6 Oct 2021 23:33:06 +0000 (08:33 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 6 Oct 2021 23:33:30 +0000 (08:33 +0900)
commite93c2abbfa54d7115abb46f4caf5689dac75db0f
treeda211212a7fc6e71550e5007e2c52d55e9070f0e
parentc0e98c09f2d766596934f24e38138fa6e495fd85
Use destructor attribute for disposing thread

The rpc-port library can be loaded and unloaded using dlopen() and
dlclose() in the runtime. In this case, the process has crashed by
the thread of the rpc-port library. Before unloading the library, the thread
has to be terminated. This patch uses destructor attribute to terminate
the thread appropriately before unloading the library is finished.

Change-Id: I2338a4419f02fb67dff042fd308ba1d590bf0ac3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/debug-port-internal.cc