Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 :
C++
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 ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900