Skip to content

Commit

Permalink
[sshfs] Add call once comment to make_quit_watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
Sploder12 committed Jan 17, 2025
1 parent b8dbc06 commit d844a00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/multipass/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ int symlink_attr_from(const char* path, sftp_attributes_struct* attr);
// Creates a function that will wait for signals or until the passed function returns false.
// The passed function is checked every `period` milliseconds.
// If a signal is received the optional contains it, otherwise the optional is empty.
// `make_quit_watchdog` should only be called once.
std::function<std::optional<int>(const std::function<bool()>&)> make_quit_watchdog(
const std::chrono::milliseconds& period); // call while single-threaded; call result later, in dedicated thread

Expand Down

0 comments on commit d844a00

Please sign in to comment.