Re: How to correct share data between threads?

2016-11-20 Thread Nicolas Gurrola via Digitalmars-d-learn
On Sunday, 20 November 2016 at 17:50:38 UTC, Konstantin Kutsevalov wrote: Ok, thank you. But I cannot to find good example. May be you know some good article about it? The Phobos documentation is a good place to start, as it has examples as well as the documentation for all the APIs: https://

Re: How to correct share data between threads?

2016-11-20 Thread Konstantin Kutsevalov via Digitalmars-d-learn
On Saturday, 19 November 2016 at 19:04:12 UTC, Nicolas Gurrola wrote: On Saturday, 19 November 2016 at 17:29:30 UTC, Konstantin Kutsevalov wrote: I need to receiving data in main thread and send its to other thread for processing. There is a simple (but wrong) code for example. What need I to

Re: How to correct share data between threads?

2016-11-19 Thread Nicolas Gurrola via Digitalmars-d-learn
On Saturday, 19 November 2016 at 17:29:30 UTC, Konstantin Kutsevalov wrote: I need to receiving data in main thread and send its to other thread for processing. There is a simple (but wrong) code for example. What need I to change to make it correct? ``` import std.stdio, std.string, std.arra

How to correct share data between threads?

2016-11-19 Thread Konstantin Kutsevalov via Digitalmars-d-learn
I need to receiving data in main thread and send its to other thread for processing. There is a simple (but wrong) code for example. What need I to change to make it correct? ``` import std.stdio, std.string, std.array, core.thread, std.datetime, std.conv; int main() { Pumpurum pp =