Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
On Saturday, 8 September 2018 at 18:21:07 UTC, drug wrote: On 08.09.2018 20:59, Marcin wrote: void main() { snipped } This? https://run.dlang.io/is/SHyCXA Thanks :)

Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
//Ten przyklad po prostu tworzy wątek w którym są trzy obiekty import core.thread; import std.stdio: write, writeln, writef, writefln; class Sinus{ double a; this(){writeln("No Args");} this(double a){writeln("U give 1 argument"); writeln(sin(a));}

Re: thread phobos and creating threads

2018-09-08 Thread drug via Digitalmars-d-learn
On 08.09.2018 20:59, Marcin wrote: void main() { snipped } This? https://run.dlang.io/is/SHyCXA

Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
https://run.dlang.io/is/PQkOfF How to make it work? void main() { import core.stdc.math : sin; import core.thread; import std.stdio : write, writeln, writef, writefln; class DerivedThread : Thread { double d; this() { super(); }

Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
I made somthing else... it works at the moment. https://run.dlang.io/is/KdOeRz But i need somthing like this to work: https://run.dlang.io/is/lGD5YQ

thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
Ive got problem with https://run.dlang.io/is/4a4CJp Why it prints 111 forever?