cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

Provide scheduler_ptr to _ScheduleFuncWithAutoInline

Open parkske opened this issue 4 years ago • 5 comments

The ambient_scheduler may not be the desired scheduler to schedule functions on, but _ScheduleFuncWithAutoInline does not offer any other option. Provide a means to select a desired scheduler and fall back to the ambient scheduler if not specified.

Related issue: https://github.com/microsoft/cpprestsdk/issues/1595

parkske avatar Mar 13 '21 01:03 parkske

CLA assistant check
All CLA requirements met.

@BillyONeal could you have a look? We ran into this when trying to pin tasks to a specific scheduler. Unsure if we're missing a case when the workflow requires use of the Ambient scheduler.

parkske avatar Mar 31 '21 21:03 parkske

@BillyONeal could you have a look? We ran into this when trying to pin tasks to a specific scheduler. Unsure if we're missing a case when the workflow requires use of the Ambient scheduler.

I am no longer directly affiliated with cpprestsdk. If I still were I would be concerned about making API changes to pplx parts unless they can be exactly replicated in ppl, because pplx's API contract is 'exactly ppl but works on other platforms'.

BillyONeal avatar Jun 09 '21 21:06 BillyONeal

Can you verify what ppl tasks does natively in this situation?

barcharcraz avatar Jun 30 '21 19:06 barcharcraz

Can you verify what ppl tasks does natively in this situation?

@barcharcraz Is there source available to examine? Or are you asking if I can compile a program against ppl with similar functionality and examine the scheduler tasks are run on?

parkske avatar Jul 06 '21 16:07 parkske