mirror of https://github.com/adamdruppe/arsd.git
lib handle needs to be used from other threads omg
This commit is contained in:
parent
be2a7a0b1b
commit
613bb65cd1
|
@ -20100,8 +20100,8 @@ private const(char)[] staticForeachReplacement(Iface)() pure {
|
||||||
private mixin template DynamicLoad(Iface, string library, int majorVersion, alias success) {
|
private mixin template DynamicLoad(Iface, string library, int majorVersion, alias success) {
|
||||||
mixin(staticForeachReplacement!Iface);
|
mixin(staticForeachReplacement!Iface);
|
||||||
|
|
||||||
private void* libHandle;
|
private __gshared void* libHandle;
|
||||||
private bool attempted;
|
private __gshared bool attempted;
|
||||||
|
|
||||||
void loadDynamicLibrary() @nogc {
|
void loadDynamicLibrary() @nogc {
|
||||||
(cast(void function() @nogc) &loadDynamicLibraryForReal)();
|
(cast(void function() @nogc) &loadDynamicLibraryForReal)();
|
||||||
|
|
Loading…
Reference in New Issue