godot/servers/physics_2d
Pedro J. Estébanez 18fbdbb456 Reimplement Mutex with C++'s <mutex>
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`.
2020-02-26 20:40:10 +01:00
..
area_2d_sw.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
area_2d_sw.h ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. 2020-02-12 14:24:54 -03:00
area_pair_2d_sw.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
area_pair_2d_sw.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
body_2d_sw.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
body_2d_sw.h ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. 2020-02-12 14:24:54 -03:00
body_pair_2d_sw.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
body_pair_2d_sw.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
broad_phase_2d_basic.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
broad_phase_2d_basic.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
broad_phase_2d_hash_grid.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
broad_phase_2d_hash_grid.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
broad_phase_2d_sw.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
broad_phase_2d_sw.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_object_2d_sw.cpp ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. 2020-02-12 14:24:54 -03:00
collision_object_2d_sw.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_solver_2d_sat.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_solver_2d_sat.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_solver_2d_sw.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_solver_2d_sw.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
constraint_2d_sw.h Fix code formatting issues and VS compilation 2020-02-11 12:05:19 +01:00
joints_2d_sw.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
joints_2d_sw.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics_2d_server_sw.cpp ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. 2020-02-12 14:24:54 -03:00
physics_2d_server_sw.h ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. 2020-02-12 14:24:54 -03:00
physics_2d_server_wrap_mt.cpp Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
physics_2d_server_wrap_mt.h Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
shape_2d_sw.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
shape_2d_sw.h Fix code formatting issues and VS compilation 2020-02-11 12:05:19 +01:00
space_2d_sw.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
space_2d_sw.h ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. 2020-02-12 14:24:54 -03:00
step_2d_sw.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
step_2d_sw.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00