]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
blk/KernelDevice: using join() to wait thread end is more safe
authorYite Gu <yitegu0@gmail.com>
Wed, 28 Aug 2024 09:48:40 +0000 (17:48 +0800)
committerYite Gu <yitegu0@gmail.com>
Thu, 26 Sep 2024 06:00:31 +0000 (14:00 +0800)
commit9c65adeb23fbb03b31bb0455b601af2c517baad5
tree5adca5702564c061b546f5b4732c5de24c329810
parent327d209151bd40cbce8ab0444d59829d75f66b9b
blk/KernelDevice: using join() to wait thread end is more safe

Using join() to wait discard thread end is more safe, it can
ensure that resource releases are sequential, to avoid potential
race conditions.

Signed-off-by: Yite Gu <yitegu0@gmail.com>
src/blk/kernel/KernelDevice.cc
src/blk/kernel/KernelDevice.h