18fbdbb456
Main: - It's now implemented thanks to `<mutex>`. No more platform-specific implementations. - `BinaryMutex` (non-recursive) is added, as an alternative for special cases. - Doesn't need allocation/deallocation anymore. It can live in the stack and be part of other classes. - Because of that, it's methods are now `const` and the inner mutex is `mutable` so it can be easily used in `const` contexts. - A no-op implementation is provided if `NO_THREADS` is defined. No more need to add `#ifdef NO_THREADS` just for this. - `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`. - Thread-safe utilities are therefore simpler now. Misc.: - `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same. - Every case of lock, do-something, unlock is replaced by `MutexLock` (complex cases where it's not straightfoward are kept as as explicit lock and unlock). - `ShaderRD` contained an `std::mutex`, which has been replaced by `Mutex`. |
||
---|---|---|
.. | ||
area_2d_sw.cpp | ||
area_2d_sw.h | ||
area_pair_2d_sw.cpp | ||
area_pair_2d_sw.h | ||
body_2d_sw.cpp | ||
body_2d_sw.h | ||
body_pair_2d_sw.cpp | ||
body_pair_2d_sw.h | ||
broad_phase_2d_basic.cpp | ||
broad_phase_2d_basic.h | ||
broad_phase_2d_hash_grid.cpp | ||
broad_phase_2d_hash_grid.h | ||
broad_phase_2d_sw.cpp | ||
broad_phase_2d_sw.h | ||
collision_object_2d_sw.cpp | ||
collision_object_2d_sw.h | ||
collision_solver_2d_sat.cpp | ||
collision_solver_2d_sat.h | ||
collision_solver_2d_sw.cpp | ||
collision_solver_2d_sw.h | ||
constraint_2d_sw.h | ||
joints_2d_sw.cpp | ||
joints_2d_sw.h | ||
physics_2d_server_sw.cpp | ||
physics_2d_server_sw.h | ||
physics_2d_server_wrap_mt.cpp | ||
physics_2d_server_wrap_mt.h | ||
SCsub | ||
shape_2d_sw.cpp | ||
shape_2d_sw.h | ||
space_2d_sw.cpp | ||
space_2d_sw.h | ||
step_2d_sw.cpp | ||
step_2d_sw.h |