1. Michael Ludwig
  2. ferox

Commits

Michael Ludwig  committed 10b9ecf

Make close monitor a managed thread within the lifecycle.

  • Participants
  • Parent commits f1aab0f
  • Branches default

Comments (0)

Files changed (1)

File ferox-renderer/ferox-renderer-lwjgl/src/main/java/com/ferox/renderer/impl/lwjgl/LwjglStaticDisplaySurface.java

View file
         adapter.startPolling();
         
         if (parentFrame == null) {
-            Thread closeMonitor = new Thread(new CloseMonitor(), "LWJGL Window Close Monitor");
+            Thread closeMonitor = new Thread(new CloseMonitor(), "window-close-monitor");
             closeMonitor.setDaemon(true);
-            closeMonitor.start();
+            getFramework().getLifeCycleManager().startManagedThread(closeMonitor);
         } else {
             parentFrame.addWindowListener(this);
         }