Concurrency test

Code



Application error:

core.thread.ThreadException@src/core/thread.d(669): Error creating thread ---------------- ./f825(std.concurrency.Tid std.concurrency._spawn!(void function(std.concurrency.Tid, immutable(int)[])*, std.concurrency.Tid, immutable(int)[])._spawn(bool, void function(std.concurrency.Tid, immutable(int)[])*, std.concurrency.Tid, immutable(int)[])+0xd4) [0x464f60] ./f825(std.concurrency.Tid std.concurrency.spawn!(void function(std.concurrency.Tid, immutable(int)[])*, std.concurrency.Tid, immutable(int)[]).spawn(void function(std.concurrency.Tid, immutable(int)[])*, std.concurrency.Tid, immutable(int)[])+0x2b) [0x464e87] ./f825(int f825.concurrentSum(int[])+0x104) [0x460c10] ./f825(_Dmain+0xf2) [0x460aee] ./f825(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1()+0x18) [0x46bb08] ./f825(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x46ba62] ./f825(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x30) [0x46bac8] ./f825(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x46ba62] ./f825(_d_run_main+0x1a3) [0x46b9e3] ./f825(main+0x17) [0x467b13] /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x40967a15]

Paste info


Author: Guest
Views: 1579
Private: no
Expires: Never
Uploaded: 28.06.12 1:39
Votes: 0

Compilation


Compiler: DMD 2.065.
Pointer size: m64