Re: Resource Management within NEWT
Posted by snmvaughan on Aug 23, 2010; 4:32pm
URL: https://forum.jogamp.org/Resource-Management-within-NEWT-tp1231617p1294819.html
The use of a ThreadLocal map for tracking displays doesn't handle destroy correctly. When a display is created it is put into a map held within a ThreadLocal instance. The destroy() method is called on the Display's EDT thread, meaning it isn't called on the same thread.
If the Display can be created and destroyed on different threads, then why is the TheadLocal used?