Hi people, im new here on group.
I have a main class "Engine" that init the SFML and start a thread to execute the "robot1.js" and "robot2.js" files isolated from main thread.
I dont know if im creating on correct mode, because the "sleep" method or anything that take a long time to execute on "thread" is locking the application.
You can see here:
My idea is create a thread that will process "robot1.js" and another thread that will process "robot2.js".
Can anyone help me?