Ensure async thread join 50/313850/3
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 2 Jul 2024 12:59:59 +0000 (14:59 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 3 Jul 2024 09:59:50 +0000 (09:59 +0000)
commit32dd7ad7926f9f4ce7e38bef30d5e7aeb7507cc2
tree2a975b4be36be96c175f05eb28680868a6cfaf47
parent0560560a112f2621712e9fb636c5f96ed87b3e8e
Ensure async thread join

ConnectionThread destructor calls EventFd::notify() which may throw. In
such case the thread will be destroyed before joining, which will
result in program termination. Make sure that the std::thread::join()
is called even if EventFd::notify throws.

Change-Id: Ieb5cbcf4440b2c9d22c2d30410fd2b9263070b2f
src/manager/client-async/connection-thread.cpp