From d844a00a9810dc4adc2fa30cf76c21201859b3dd Mon Sep 17 00:00:00 2001 From: Trevor Shoe Date: Fri, 17 Jan 2025 09:08:06 -0500 Subject: [PATCH] [sshfs] Add call once comment to make_quit_watchdog --- include/multipass/platform.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/multipass/platform.h b/include/multipass/platform.h index 81244e28dc..2dd1ff701d 100644 --- a/include/multipass/platform.h +++ b/include/multipass/platform.h @@ -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(const std::function&)> make_quit_watchdog( const std::chrono::milliseconds& period); // call while single-threaded; call result later, in dedicated thread