mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Have Qt poll for shutdown requested, the QT way.
This commit is contained in:
parent
b31499ec72
commit
723035bb68
6 changed files with 23 additions and 11 deletions
|
|
@ -61,8 +61,8 @@ enum BindFlags {
|
|||
// immediately and the parent exits from main().
|
||||
//
|
||||
// Shutdown for Qt is very similar, only it uses a QTimer to detect
|
||||
// fRequestShutdown getting set (either by RPC stop or SIGTERM)
|
||||
// and then does the normal Qt shutdown thing.
|
||||
// fRequestShutdown getting set, and then does the normal Qt
|
||||
// shutdown thing.
|
||||
//
|
||||
|
||||
volatile bool fRequestShutdown = false;
|
||||
|
|
@ -71,6 +71,10 @@ void StartShutdown()
|
|||
{
|
||||
fRequestShutdown = true;
|
||||
}
|
||||
bool ShutdownRequested()
|
||||
{
|
||||
return fRequestShutdown;
|
||||
}
|
||||
|
||||
static CCoinsViewDB *pcoinsdbview;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue