December 02 Learn » Re: Variable modified by different threads. | |||
|---|---|---|---|
| |||
...mutex in order to increment a simple int. The CPU's atomic operation primitives already... | |||
December 02 Learn » Search on Shared array and return | |||
|---|---|---|---|
| |||
...shared string username;
shared int age;
this(shared string username, shared int age)
{
this.username... | |||
December 02 Learn » Re: Variable modified by different threads. | |||
|---|---|---|---|
| |||
...int gInt;
void initialize(int initialValue = 0)
{
mutex = new Mutex();
gInt = initialValue;
}
void increment(int... | |||
December 02 Learn » Re: Variable modified by different threads. | |||
|---|---|---|---|
| |||
...private shared int gInt;
// Method to safely increment the global variable
void increment(int value... | |||
December 01 Learn » Re: Variable modified by different threads. | |||
|---|---|---|---|
| |||
...variable that will be incremented collectively. shared int g; // This is the variable that will... | |||
December 01 Learn » Re: How can I have those "template instance recursive expansion" errors under control? | |||
|---|---|---|---|
| |||
...enum isdata(T)=false;
unittest{
import std;
isdata!(int).writeln;
isdata!(data!(int,100)).writeln;
}
``` | |||
December 01 Issues » [Issue 24533] clamp with smaller-than-int T1 fails to compile with literal parameters | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=24533 --- Comment #1 from dlangBugzillaToGithub <robert.schadek... | |||
December 01 Issues » [Issue 22280] [optimization]: std.conv.parse!(int, string) counts when doCount is false | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22280 --- Comment #1 from dlangBugzillaToGithub <robert.schadek... | |||
December 01 Issues » [Issue 21386] std.random.uniform!T(urng) when T is int/uint/long/ulong and urng.front is byte/ubyte/short/ushort is not supported but could be | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=21386 --- Comment #1 from dlangBugzillaToGithub <robert.schadek... | |||
December 01 Issues » [Issue 21381] std.random.uniform!T(urng) when T is long or ulong and urng.front is signed int will be biased in its high bits | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=21381 --- Comment #1 from dlangBugzillaToGithub <robert.schadek... | |||
Copyright © 1999-2021 by the D Language Foundation