1
0
Fork 0
godot/modules/gdscript
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
..
doc_classes doc: Sync classref with current source 2020-02-18 14:02:02 +01:00
editor Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
icons Add support for creating editor icons per module 2019-06-28 23:42:26 +03:00
language_server Improve LSP completion using scene owner 2020-02-25 23:27:17 -03:00
SCsub GDScript: Disable LSP if either jsonrpc or websocket are disabled 2019-08-28 13:29:37 +02:00
config.py doc: Improve docs for Resource* classes 2019-06-18 20:07:26 +02:00
gdscript.cpp Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
gdscript.h Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
gdscript_compiler.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
gdscript_compiler.h GDScript: Don't re-evaluate index on assigment with operation 2020-01-09 10:43:29 -03:00
gdscript_editor.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
gdscript_function.cpp Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
gdscript_function.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
gdscript_functions.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
gdscript_functions.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
gdscript_parser.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
gdscript_parser.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gdscript_tokenizer.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
gdscript_tokenizer.h Remove deprecated sync and slave networking keywords 2020-02-13 08:59:36 +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