On Sunday, 30 December 2018 at 08:24:20 UTC, Brakeran wrote:
On Thursday, 27 December 2018 at 06:22:31 UTC, Vitaly wrote:
Maybe use spawnLinked()? https://run.dlang.io/is/9xbyAF
Thanks.
At the moment, I implemented it through sending a message, and
receiveTimeout receiving, if the response is
On Thursday, 27 December 2018 at 06:22:31 UTC, Vitaly wrote:
Maybe use spawnLinked()? https://run.dlang.io/is/9xbyAF
Thanks.
At the moment, I implemented it through sending a message, and
receiveTimeout receiving, if the response is not received after
the timeout expires, then it is considered
Maybe use spawnLinked()? https://run.dlang.io/is/9xbyAF
Thanks.
At the moment, I implemented it through sending a message, and
receiveTimeout receiving, if the response is not received after
the timeout expires, then it is considered that the has
terminated. Probably this is not right, but I
On Wednesday, 26 December 2018 at 05:43:47 UTC, Vitaly wrote:
On Tuesday, 25 December 2018 at 17:08:00 UTC, Neia Neutuladh
wrote:
1. Find the Thread object:
Tid threadId = spawn(&doStuff);
auto thread = Thread.getAll.filter!(x => x.id ==
threadId).front;
2. Check the `isRunning` property.
std.concurrency is a low-level API. You may be looking for a
higher level API: std.parallelism. See Task.done(),
https://dlang.org/phobos/std_parallelism.html#.Task.done
Bastiaan.
Maybe I misunderstood, but the capabilities of the
std.parallelism module do not allow to exchange messages with t
On Tuesday, 25 December 2018 at 17:12:13 UTC, Bastiaan Veelo
wrote:
std.concurrency is a low-level API. You may be looking for a
higher level API: std.parallelism. See Task.done(),
https://dlang.org/phobos/std_parallelism.html#.Task.done
Bastiaan.
Thanks for the answer.
I will look at the pos
On Tuesday, 25 December 2018 at 17:08:00 UTC, Neia Neutuladh
wrote:
1. Find the Thread object:
Tid threadId = spawn(&doStuff);
auto thread = Thread.getAll.filter!(x => x.id ==
threadId).front;
2. Check the `isRunning` property.
The indirection with spawn() is awkward.
Thanks for the answ
On Tuesday, 25 December 2018 at 14:44:43 UTC, Vitaly wrote:
Hi all.
I can not understand how to track me that the thread has
finished work.
eg:
import std.concurrency;
void myThread ()
{
// Do the work
}
void main ()
{
Tid thread = spawn (& myThread);
// It is necessary to check whether the t
1. Find the Thread object:
Tid threadId = spawn(&doStuff);
auto thread = Thread.getAll.filter!(x => x.id == threadId).front;
2. Check the `isRunning` property.
The indirection with spawn() is awkward.
Hi all.
I can not understand how to track me that the thread has finished
work.
eg:
import std.concurrency;
void myThread ()
{
// Do the work
}
void main ()
{
Tid thread = spawn (& myThread);
// It is necessary to check whether the thread has finished its
work or is active.
}
Could you tell
10 matches
Mail list logo