godot/modules/mono
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
..
build_scripts PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
doc_classes doc: Sync classref with current source 2020-02-18 14:02:02 +01:00
editor Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
glue Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
icons [Mono]: the C# script icon is now visible in the editor. 2020-01-03 22:49:22 +01:00
mono_gd Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
utils Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
.gitignore Make git no longer ignore solution files inside the mono module 2019-08-12 15:59:06 +02:00
__init__.py Re-write mono module editor code in C# 2019-07-05 09:38:23 +02:00
class_db_api_json.cpp Fix ClassDB API portability with some android and editor classes 2020-01-19 20:15:13 +01:00
class_db_api_json.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
config.py Mono/C#: WebAssembly support 2019-11-13 21:41:11 +01:00
csharp_script.cpp Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
csharp_script.h Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
godotsharp_defs.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
godotsharp_dirs.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
godotsharp_dirs.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mono_gc_handle.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mono_gc_handle.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_types.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Mono/C#: Re-structure API solution and GodotTools post-build target 2019-12-28 20:48:55 +01:00
signal_awaiter_utils.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
signal_awaiter_utils.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00