godot/servers/visual/rasterizer_rd
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
..
shaders Fix MIMPAMPS typos in constants throughout the engine 2020-02-20 01:31:43 +02:00
light_cluster_builder.cpp PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
light_cluster_builder.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
rasterizer_canvas_rd.cpp Fix MIMPAMPS typos in constants throughout the engine 2020-02-20 01:31:43 +02:00
rasterizer_canvas_rd.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
rasterizer_effects_rd.cpp PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
rasterizer_effects_rd.h Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
rasterizer_rd.cpp PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
rasterizer_rd.h Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
rasterizer_scene_high_end_rd.cpp Fix MIMPAMPS typos in constants throughout the engine 2020-02-20 01:31:43 +02:00
rasterizer_scene_high_end_rd.h Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
rasterizer_scene_rd.cpp Fix compilation warnings and re-enable werror=yes on Travis 2020-02-18 20:51:25 +01:00
rasterizer_scene_rd.h doc: Sync classref with current source 2020-02-12 12:37:13 +01:00
rasterizer_storage_rd.cpp Fix MIMPAMPS typos in constants throughout the engine 2020-02-20 01:31:43 +02:00
rasterizer_storage_rd.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
render_pipeline_vertex_format_cache_rd.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
render_pipeline_vertex_format_cache_rd.h Fix compilation warnings and re-enable werror=yes on Travis 2020-02-18 20:51:25 +01:00
SCsub Custom material support seems complete. 2020-02-11 11:53:29 +01:00
shader_compiler_rd.cpp Added support for arrays as shader struct members 2020-02-12 17:10:20 +03:00
shader_compiler_rd.h Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
shader_rd.cpp Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
shader_rd.h Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00