File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -636,7 +636,6 @@ void Engine::run()
636
636
{
637
637
start ();
638
638
eventLoop (true );
639
- finalize ();
640
639
}
641
640
642
641
void Engine::runEventLoop ()
@@ -777,7 +776,11 @@ void Engine::eventLoop(bool untilProjectStops)
777
776
m_clock->sleep (sleepTime);
778
777
}
779
778
780
- finalize ();
779
+ m_eventLoopMutex.lock ();
780
+ m_threads.clear ();
781
+ m_running = false ;
782
+ m_redrawRequested = false ;
783
+ m_eventLoopMutex.unlock ();
781
784
}
782
785
783
786
bool Engine::isRunning () const
@@ -1962,15 +1965,6 @@ void Engine::compileMonitor(std::shared_ptr<Monitor> monitor)
1962
1965
#endif // USE_LLVM
1963
1966
}
1964
1967
1965
- void Engine::finalize ()
1966
- {
1967
- m_eventLoopMutex.lock ();
1968
- m_threads.clear ();
1969
- m_running = false ;
1970
- m_redrawRequested = false ;
1971
- m_eventLoopMutex.unlock ();
1972
- }
1973
-
1974
1968
void Engine::deleteClones ()
1975
1969
{
1976
1970
m_eventLoopMutex.lock ();
Original file line number Diff line number Diff line change @@ -206,7 +206,6 @@ class Engine : public IEngine
206
206
std::vector<std::shared_ptr<Thread>> stepThreads ();
207
207
void stepThread (std::shared_ptr<Thread> thread);
208
208
void eventLoop (bool untilProjectStops = false );
209
- void finalize ();
210
209
void deleteClones ();
211
210
void removeExecutableClones ();
212
211
void addVarOrListMonitor (std::shared_ptr<Monitor> monitor, Target *target);
You can’t perform that action at this time.
0 commit comments