[ODE] Thread Safety

Jon Watte (ODE) hplus-ode at mindcontrol.org
Fri Jun 30 00:12:10 MST 2006

Watson Ladd wrote:
> Is ODE threadsafe? What do I need to lock access to in order to make  
> it threadsafe?

ODE is not thread safe, in that you cannot call two separate functions 
of ODE from two threads at the same time. You must call ODE from only a 
single thread at a time.

It is, however, quite possible to wrap ODE in a system where you run the 
time consuming parts (collision detection, world integration) in a 
separate thread, and then join up with the main thread to extract 
parameters and provide controlling forces. That's not something ODE does 
by itself, though.


          / h+

More information about the ODE mailing list