Using Multiple Threads

Started by paulcam, December 23, 2005, 18:46:57

Previous topic - Next topic

paulcam

Hi,

I am relatively new to OpenGL, and LWJGL, so some assistance would be appreciated.  I have a program where the mouse events are being handled by a separate thread.  While I am not sure that the threads were a good idea, would it not be a good idea to make Mouse.next() and Mouse.poll() synchronized anyway?  

In my case, I suspect that both of these methods are being called at the same time, which is causing an exception to be thrown.  I am pretty sure that I can get around the problem, either synchronizing methods on my side, or removing the threads (i think I have worked out why i was having a problem, so I probably dont need them anymore).

Any comments would be appreciated.

Paul