Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Bug 15073: make static variable __gshared
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-weka committed Sep 20, 2015
1 parent bc54d80 commit 877233f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/sys/posix/signal.d
Expand Up @@ -110,15 +110,15 @@ version( Solaris )
import core.sys.posix.unistd;

@property int SIGRTMIN() nothrow @nogc {
static int sig = -1;
__gshared static int sig = -1;
if (sig == -1) {
sig = cast(int)sysconf(_SC_SIGRT_MIN);
}
return sig;
}

@property int SIGRTMAX() nothrow @nogc {
static int sig = -1;
__gshared static int sig = -1;
if (sig == -1) {
sig = cast(int)sysconf(_SC_SIGRT_MAX);
}
Expand All @@ -134,15 +134,15 @@ else version( linux )
}

@property int SIGRTMIN() nothrow @nogc {
static int sig = -1;
__gshared static int sig = -1;
if (sig == -1) {
sig = __libc_current_sigrtmin();
}
return sig;
}

@property int SIGRTMAX() nothrow @nogc {
static int sig = -1;
__gshared static int sig = -1;
if (sig == -1) {
sig = __libc_current_sigrtmax();
}
Expand Down

0 comments on commit 877233f

Please sign in to comment.