Kind Regards Benjamin Thaut
std.paralellism.Task value type problems
Benjamin Thaut via Digitalmars-d-learn Wed, 19 Oct 2016 08:32:33 -0700
I would like to use std.paralellism.TaskPool to schedule various
tasks I create. The problem however is that these tasks don't
have a lifetime which is bound to any function scope I have. So I
need to create a new task object on the heap and push it into a
array for bookkeeping. The problem however is that
std.paralellism.Task is a struct and the only way to instanciate
it is to use std.paralelism.task which returns it as a value. I
have no idea at the moment how to allocate a instance of
std.paralellism.Task on the heap. Any suggestions?
- std.paralellism.Task value type pro... Benjamin Thaut via Digitalmars-d-learn
- Re: std.paralellism.Task value... Ryan via Digitalmars-d-learn