godot/modules/mono/mono_gd
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_mono_config.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono.cpp Remove duplicate WARN_PRINT macro. 2020-02-05 11:13:24 +01:00
gd_mono.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_android.cpp Remove the last ERR_PRINTS that was missed by #33391 2020-02-07 00:15:46 +05:30
gd_mono_android.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_assembly.cpp Mono: Fix parsing assembly names as UTF-8 2020-01-15 11:51:03 +01:00
gd_mono_assembly.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_cache.cpp Remove deprecated sync and slave networking keywords 2020-02-13 08:59:36 +01:00
gd_mono_cache.h Remove deprecated sync and slave networking keywords 2020-02-13 08:59:36 +01:00
gd_mono_class.cpp Remove duplicate WARN_PRINT macro. 2020-02-05 11:13:24 +01:00
gd_mono_class.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_field.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
gd_mono_field.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_header.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_internals.cpp Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr. 2020-02-15 08:36:04 -03:00
gd_mono_internals.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_log.cpp Remove duplicate ERR_PRINT macro. 2020-02-05 11:13:24 +01:00
gd_mono_log.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_marshal.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
gd_mono_marshal.h Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
gd_mono_method.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_method.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_method_thunk.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_property.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_property.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gd_mono_utils.cpp Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
gd_mono_utils.h Mono/C#: Script interface calls now attach the current thread 2020-01-16 17:47:36 +01:00
i_mono_class_member.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
managed_type.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
managed_type.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00