Instance: move code to OnStateModified()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user