Which site is good to find up to 3 years of historical data
through CSV?
This code snippet is from:
http://dlang.org/phobos/std_parallelism.html
---
import std.algorithm, std.parallelism, std.range;
void main() {
// Parallel reduce can be combined with
// std.algorithm.map to interesting effect.
// The following example (thanks to Russel Winder)
//
Where can I find help on this?
-ish
The following code does core dump (compiled with gdc). Pointers
will be appreciated.
import std.stdio;
import std.conv;
import std.math;
import std.concurrency;
import core.thread;
import core.sync.mutex;
enum count = 5;
__gshared double rslt = 0.0;
__gshared Mutex mutex;
void
The following code does not compile (with gdc) but if the line
containing taskPool.reduce is reduce it does compile. Any
pointers will be appreciated.
import std.stdio;
import std.math;
import std.algorithm;
import std.parallelism; // does not work!!
import core.thread;
double
On Thursday, 19 November 2015 at 22:07:19 UTC, ZombineDev wrote:
On Friday, 13 November 2015 at 15:35:11 UTC, Ish wrote:
[...]
If you're more familiar with pthreads, you can just use them
from core.sys.posix.pthread [1]. After all this what
core.thread uses on Posix [2]. In general you can
On Friday, 13 November 2015 at 19:45:58 UTC, Ali Çehreli wrote:
On 11/13/2015 07:35 AM, Ish wrote:
[...]
I think the following is the idea:
import std.stdio;
import core.thread;
extern(C) void rt_moduleTlsDtor();
void threadFunc() {
writeln("Worker thread started");
foreach (i; 0..5) {
immutable int j = i;
etc.
}
I want each j to be assigned separate memory so that it can be
passed to a calle function and not overwritten by next value of i
in foreach()??
I was directed here from General list, so be patient with me. I
am looking for syntax for creating a detached-state thread in the
spirit of POSIX thread attribute PTHREAD_CREATE_DETACHED (the
thread resources are released on termination and not when the
main thread terminates - allows for a
On Friday, 13 November 2015 at 18:10:38 UTC, Marc Schütz wrote:
On Friday, 13 November 2015 at 17:44:31 UTC, Ish wrote:
On Friday, 13 November 2015 at 16:06:51 UTC, Alex Parrill
wrote:
[...]
immutable int* j = new immutable int(i);
gives error:
locks1.d:27: error: no constructor for
On Friday, 13 November 2015 at 16:06:51 UTC, Alex Parrill wrote:
On Friday, 13 November 2015 at 15:49:01 UTC, Ish wrote:
foreach (i; 0..5) {
immutable int j = i;
etc.
}
I want each j to be assigned separate memory so that it can be
passed to a calle function and not overwritten by next
11 matches
Mail list logo