mirror of https://github.com/buggins/dlangui.git
move some vars from TLS to __gshared
This commit is contained in:
parent
45b1fa3bd1
commit
37a5072955
|
@ -1130,7 +1130,7 @@ class CustomEvent {
|
||||||
protected int _id;
|
protected int _id;
|
||||||
protected uint _uniqueId;
|
protected uint _uniqueId;
|
||||||
|
|
||||||
protected static uint _uniqueIdGenerator;
|
protected static __gshared uint _uniqueIdGenerator;
|
||||||
|
|
||||||
protected Widget _destinationWidget;
|
protected Widget _destinationWidget;
|
||||||
// event id
|
// event id
|
||||||
|
|
|
@ -111,7 +111,7 @@ private class FreeTypeFontFile {
|
||||||
@property int weight() { return _weight; }
|
@property int weight() { return _weight; }
|
||||||
@property bool italic() { return _italic; }
|
@property bool italic() { return _italic; }
|
||||||
|
|
||||||
debug private static int _instanceCount;
|
debug private static __gshared int _instanceCount;
|
||||||
this(FT_Library library, string filename) {
|
this(FT_Library library, string filename) {
|
||||||
_library = library;
|
_library = library;
|
||||||
_filename = filename;
|
_filename = filename;
|
||||||
|
@ -487,7 +487,7 @@ class FreeTypeFontManager : FontManager {
|
||||||
|
|
||||||
//private FontList _activeFonts;
|
//private FontList _activeFonts;
|
||||||
|
|
||||||
private static FontRef _nullFontRef;
|
private static __gshared FontRef _nullFontRef;
|
||||||
|
|
||||||
this() {
|
this() {
|
||||||
// load dynaic library
|
// load dynaic library
|
||||||
|
|
|
@ -87,7 +87,7 @@ class EventList {
|
||||||
}
|
}
|
||||||
|
|
||||||
class TimerInfo {
|
class TimerInfo {
|
||||||
static ulong nextId;
|
static __gshared ulong nextId;
|
||||||
|
|
||||||
this(Widget targetWidget, long intervalMillis) {
|
this(Widget targetWidget, long intervalMillis) {
|
||||||
_id = ++nextId;
|
_id = ++nextId;
|
||||||
|
|
|
@ -57,7 +57,7 @@ class Win32ColorDrawBuf : ColorDrawBufBase {
|
||||||
/// returns HBITMAP for alpha
|
/// returns HBITMAP for alpha
|
||||||
HBITMAP createTransparencyBitmap() {
|
HBITMAP createTransparencyBitmap() {
|
||||||
int hbytes = (((_dx + 7) / 8) + 1) & 0xFFFFFFFE;
|
int hbytes = (((_dx + 7) / 8) + 1) & 0xFFFFFFFE;
|
||||||
static ubyte[] buf;
|
static __gshared ubyte[] buf;
|
||||||
buf.length = hbytes * _dy * 2;
|
buf.length = hbytes * _dy * 2;
|
||||||
//for (int y = 0; y < _dy; y++) {
|
//for (int y = 0; y < _dy; y++) {
|
||||||
// uint * src = scanLine(y);
|
// uint * src = scanLine(y);
|
||||||
|
|
|
@ -41,7 +41,7 @@ interface TabCloseHandler {
|
||||||
|
|
||||||
/// tab item metadata
|
/// tab item metadata
|
||||||
class TabItem {
|
class TabItem {
|
||||||
private static long _lastAccessCounter;
|
private static __gshared long _lastAccessCounter;
|
||||||
private string _iconRes;
|
private string _iconRes;
|
||||||
private string _id;
|
private string _id;
|
||||||
private UIString _label;
|
private UIString _label;
|
||||||
|
|
Loading…
Reference in New Issue