mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Timer: Warn if the TimerThread outlives the ScopedJuceIniitaliser_GUI
This commit is contained in:
parent
ee641f7baf
commit
c6110c09b5
1 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ public:
|
||||||
|
|
||||||
~TimerThread() override
|
~TimerThread() override
|
||||||
{
|
{
|
||||||
|
// If this is hit, a timer has outlived the platform event system.
|
||||||
|
jassert (MessageManager::getInstanceWithoutCreating() != nullptr);
|
||||||
|
|
||||||
stopThreadAsync();
|
stopThreadAsync();
|
||||||
ShutdownDetector::removeListener (this);
|
ShutdownDetector::removeListener (this);
|
||||||
stopThread (-1);
|
stopThread (-1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue