From 613bb65cd126c03ab0471f7fdb374bcf6aeaa9ce Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 10 Oct 2021 13:34:14 -0400 Subject: [PATCH] lib handle needs to be used from other threads omg --- simpledisplay.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simpledisplay.d b/simpledisplay.d index 50d7dbe..b15c7e0 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -20100,8 +20100,8 @@ private const(char)[] staticForeachReplacement(Iface)() pure { private mixin template DynamicLoad(Iface, string library, int majorVersion, alias success) { mixin(staticForeachReplacement!Iface); - private void* libHandle; - private bool attempted; + private __gshared void* libHandle; + private __gshared bool attempted; void loadDynamicLibrary() @nogc { (cast(void function() @nogc) &loadDynamicLibraryForReal)();