refactor system stop
This commit is contained in:
@ -247,6 +247,8 @@ auto fuse_drive::create_impl(std::string api_path, mode_t mode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void fuse_drive::stop_all() {
|
void fuse_drive::stop_all() {
|
||||||
|
REPERTORY_USES_FUNCTION_NAME();
|
||||||
|
|
||||||
mutex_lock lock(stop_all_mtx_);
|
mutex_lock lock(stop_all_mtx_);
|
||||||
|
|
||||||
auto future = std::async(std::launch::async, [this]() {
|
auto future = std::async(std::launch::async, [this]() {
|
||||||
|
@ -1152,6 +1152,8 @@ auto winfsp_drive::SetFileSize(PVOID /*file_node*/, PVOID file_desc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void winfsp_drive::stop_all() {
|
void winfsp_drive::stop_all() {
|
||||||
|
REPERTORY_USES_FUNCTION_NAME();
|
||||||
|
|
||||||
mutex_lock lock(stop_all_mtx_);
|
mutex_lock lock(stop_all_mtx_);
|
||||||
|
|
||||||
auto future = std::async(std::launch::async, [this]() {
|
auto future = std::async(std::launch::async, [this]() {
|
||||||
|
Reference in New Issue
Block a user