Instance: move code to OnStateModified()

This commit is contained in:
Max Kellermann
2020-01-20 13:28:00 +01:00
parent 5d597a3646
commit 6fcea2d484
3 changed files with 17 additions and 3 deletions

View File

@@ -152,6 +152,14 @@ struct Instance final
idle_monitor.OrMask(mask);
}
/**
* Notify the #Instance that the state has been modified, and
* the #StateFile may need to be saved.
*
* This method must be called from the main thread.
*/
void OnStateModified() noexcept;
/**
* Find a #Partition with the given name. Returns nullptr if
* no such partition was found.