godot/modules/mono
Adam Cigánek b95cc40640 Set current SynchronizationContext before the game loop starts
This fixes the problem that `SynchronizationContext.Current` would be null
during the call to `_EnterTree`, `_Ready` and the first call to `_Process` thus
the task continuations would be scheduled outside the main thread, which is unexpected and might lead to crashes.

With this change, task continuations are scheduled always on the main thread and so async/await can be used without any explicit synchronization, which is what is expected.

Fixes #18849

(cherry picked from commit f25240cfe6)
2018-06-01 18:07:32 +02:00
..
doc_classes Deprecate a typo for a new method introduced in 3.0.1 2018-02-27 17:53:46 +01:00
editor fixes build error on Linux after its introduction in #18949 2018-06-01 18:06:44 +02:00
glue Set current SynchronizationContext before the game loop starts 2018-06-01 18:07:32 +02:00
mono_gd Reduce allocations when converting mono arrays to pool arrays 2018-06-01 18:04:54 +02:00
utils Fix editor detecting msbuild with a msvc 'tools only' install 2018-05-13 22:00:53 +02:00
config.py Fix MSVC check when building with mono 2018-05-13 22:00:20 +02:00
csharp_script.cpp Mono: Improve 'script class not found' error 2018-06-01 18:04:12 +02:00
csharp_script.h Mono: Avoid invalid class names. 2018-04-15 00:48:11 +02:00
godotsharp_defs.h Mono: Better versioning and gracefully unloading of Godot API assemblies 2018-02-26 22:36:03 +01:00
godotsharp_dirs.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
godotsharp_dirs.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mono_gc_handle.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mono_gc_handle.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mono_reg_utils.py Fix msbuild with a msvc 'tools only' install 2018-04-30 12:54:51 +02:00
register_types.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
register_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub Mono: Buildsystem improvements 2018-02-27 11:35:19 +01:00
signal_awaiter_utils.cpp SignalAwaiter::_signal_callback was calling the thunk with a wrong pointer 2018-01-23 12:58:54 +01:00
signal_awaiter_utils.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00