summaryrefslogtreecommitdiff
path: root/modules/mono/glue/Managed/Files/GodotSynchronizationContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mono/glue/Managed/Files/GodotSynchronizationContext.cs')
-rw-r--r--modules/mono/glue/Managed/Files/GodotSynchronizationContext.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/modules/mono/glue/Managed/Files/GodotSynchronizationContext.cs b/modules/mono/glue/Managed/Files/GodotSynchronizationContext.cs
deleted file mode 100644
index 4b5e3f8761..0000000000
--- a/modules/mono/glue/Managed/Files/GodotSynchronizationContext.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System.Collections.Concurrent;
-using System.Collections.Generic;
-using System.Threading;
-
-namespace Godot
-{
- public class GodotSynchronizationContext : SynchronizationContext
- {
- private readonly BlockingCollection<KeyValuePair<SendOrPostCallback, object>> _queue = new BlockingCollection<KeyValuePair<SendOrPostCallback, object>>();
-
- public override void Post(SendOrPostCallback d, object state)
- {
- _queue.Add(new KeyValuePair<SendOrPostCallback, object>(d, state));
- }
-
- public void ExecutePendingContinuations()
- {
- while (_queue.TryTake(out var workItem))
- {
- workItem.Key(workItem.Value);
- }
- }
- }
-}