Commits

Michael Ludwig committed 8eb7097

Fix thread interrupting on Windows interacting badly with AWT and LWJGL

  • Participants
  • Parent commits 36f8490

Comments (0)

Files changed (1)

File ferox-renderer/ferox-renderer-impl/src/main/java/com/ferox/renderer/impl/LifeCycleManager.java

                     preDestroy.run();
                 
                 // Send an interrupt to all managed threads
-                managedThreadGroup.interrupt();
+                // - we can't just interrupt the group because some impl's use AWT
+                //   which then inherits this group and gets fussy when we send
+                //   interrupts out.
+                for (Thread m: managedThreads) {
+                	m.interrupt();
+                }
                 status = Status.WAITING_ON_CHILDREN;
                 
                 ThreadGroup shutdownOwner = Thread.currentThread().getThreadGroup();