Currently it is impossible to use the C API in a multi-threaded context, if multiple threads simultaneously want to create contact points. This is caused by the API passing indices to the global cpTable variable around.
The API should be changed e.g. to pass opaque pointers insted of indices. It should be verified (e.g. using TSan) that multi-threaded access works without data races.
Currently it is impossible to use the C API in a multi-threaded context, if multiple threads simultaneously want to create contact points. This is caused by the API passing indices to the global
cpTablevariable around.The API should be changed e.g. to pass opaque pointers insted of indices. It should be verified (e.g. using TSan) that multi-threaded access works without data races.