Instance: add method Shutdown()

This commit is contained in:
Max Kellermann
2016-03-05 18:33:27 +01:00
parent 8e563cbccd
commit 23ab4e5e5f
3 changed files with 16 additions and 1 deletions

View File

@@ -76,6 +76,11 @@ struct Instance final
Partition *partition;
/**
* Initiate shutdown. Wrapper for EventLoop::Break().
*/
void Shutdown();
#ifdef ENABLE_DATABASE
/**
* Returns the global #Database instance. May return nullptr