Check current thread ID to destroy handle 27/262927/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 23 Aug 2021 22:44:16 +0000 (07:44 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 23 Aug 2021 23:58:42 +0000 (08:58 +0900)
commit2da1742b97e33d2b9c42d01104080721143d8b59
tree1464988bbd84f9e050848a75e0685208370c48ed
parent1843bcaf9da2490667c87809560c85a35f1dcd03
Check current thread ID to destroy handle

If the current thread ID is equal to the process ID,
the destroy functions destroy the handle immediately.
If it's not, the rpc-port uses glib idler to destroy the handle
in the main thread.

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