refactor system stop

This commit is contained in:
2025-01-21 13:29:56 -06:00
parent daa8b9df24
commit 5da036e979
2 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,8 @@ auto fuse_drive::create_impl(std::string api_path, mode_t mode,
}
void fuse_drive::stop_all() {
REPERTORY_USES_FUNCTION_NAME();
mutex_lock lock(stop_all_mtx_);
auto future = std::async(std::launch::async, [this]() {

View File

@ -1152,6 +1152,8 @@ auto winfsp_drive::SetFileSize(PVOID /*file_node*/, PVOID file_desc,
}
void winfsp_drive::stop_all() {
REPERTORY_USES_FUNCTION_NAME();
mutex_lock lock(stop_all_mtx_);
auto future = std::async(std::launch::async, [this]() {