Fix using condition variable 39/283339/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 24 Oct 2022 22:56:04 +0000 (22:56 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 24 Oct 2022 23:05:23 +0000 (23:05 +0000)
commit5404c0081d778acc9477c74f94dad17118dd5a43
treea5faccb390165a01f46a4ce15bbf311b6421d1f1
parent9da6ac3c2ed903670529b5c2994d9629f3139ed4
Fix using condition variable

Locking the mutex is moved before creating the worker thread.
If the notify_one() is called before the wait(), the main thread will be always
blocked.

Change-Id: I43fe09ca6318e1c23965e72a8291a37eec5583df
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
cion/vine/vine_session.cc