mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
that scheduler is ignored if it is in a thread owned by another scheduler. Tasks should not be locked to the scheduler that owns the calling thread. Fix bug where TryExecuteTask does not actually try to execute the task. Instead, TryExecuteTaskInline is called, which is abstract. The TpScheduler implementation, the default, then calls the internal method Task.Execute which then actually executes the task. The problem with this is that only 3rd party schedulers, can't actually execute a task, thus making extending TaskScheduler impossible. (Unless they use some serious Mono specific reflection hacks as I am now.)