Concurrency

Hello,



I have a button in my NiftyGUI which calls a method in my controller when the player clicks on it. This method now proceeds to call a method on an object. My update loop ocassionaly calls a method on that same object as well.



Can I get concurrency issues here? Or do they both run on the same thread?

Alright, they seem to be the same as both gave me their name as “LWJGL renderer thread”. Any objections?

That’s all done on the same thread.

It’s good you are asking the question though, could have saved yourself a world of pain :slight_smile:



The threading tutorial should answer most of your concurrency questions: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:multithreading