Fix locking the mutex of the Port class 11/264311/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Sep 2021 00:19:52 +0000 (09:19 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Sep 2021 00:27:08 +0000 (09:27 +0900)
commit5015bfe93ba0ec8362363db09068644f248be55d
tree027717ecbdec3ee0a6d93def20fa8dc6853df29a
parentc72a00774425d688a04cd8d0d43b0c693f1426b2
Fix locking the mutex of the Port class

To reduce the interval of locking the mutex, the mutex lock in the Read() method
ie separated using braces. And, the mutex lock is added to the Disconnect() method.

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