godot/modules/gdnative
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
..
android Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
arvr PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
doc_classes doc: Sync classref with StringName/Callable changes 2020-02-22 14:59:09 +01:00
gdnative Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
icons Add support for creating editor icons per module 2019-06-28 23:42:26 +03:00
include Update docs and bindings for new integer vector types 2020-02-25 15:27:29 +01:00
nativescript Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
net Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
pluginscript Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
videodecoder PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
config.py doc: Improve docs for Resource* classes 2019-06-18 20:07:26 +02:00
gdnative.cpp Remove duplicate ERR_PRINT macro. 2020-02-05 11:13:24 +01:00
gdnative.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gdnative_api.json PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
gdnative_builders.py Remove deprecated GDNative wrapper code 2020-01-31 11:20:25 +01:00
gdnative_library_editor_plugin.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
gdnative_library_editor_plugin.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
gdnative_library_singleton_editor.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
gdnative_library_singleton_editor.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_types.cpp PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
register_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Remove deprecated GDNative wrapper code 2020-01-31 11:20:25 +01:00