Adds StopNotifier and StopRpcServer functions

Workaround for #30.  Allows libraries to shut down the secondary
threads.
This commit is contained in:
Thad House
2015-11-11 20:50:30 -08:00
parent 3469f6733c
commit a142cc48d3
5 changed files with 30 additions and 0 deletions

View File

@@ -230,6 +230,14 @@ void StopClient() {
Dispatcher::GetInstance().Stop();
}
void StopRpcServer() {
RpcServer::GetInstance().Stop();
}
void StopNotifier() {
Notifier::GetInstance().Stop();
}
void SetUpdateRate(double interval) {
Dispatcher::GetInstance().SetUpdateRate(interval);
}