Vote count:
0
In my Software i have a for loop which has very heavy process so i want to use parallel method such as mask_task to run this for loop in parallel . i need to create array of task handle in Header file and then use them is Cpp file. in MSDN the definition of make_task is local and the return value is 'auto' so i can not use the MSDN.
this command is now working in my software :
auto t1 = make_task([&]ParProcess(Input1,&Output1,&Output2);});
but i need to convert 't1' to the member of class and a pointer. Is anyone can help me ?
asked 55 secs ago
Aucun commentaire:
Enregistrer un commentaire