[cpp-threads] Asynchronous Function Proposal
Bjarne Stroustrup
bs at cs.tamu.edu
Mon Jun 1 14:20:27 BST 2009
Beman Dawes wrote:
> On Sun, May 31, 2009 at 6:59 PM, Lawrence Crowl <Lawrence at crowl.org> wrote:
>
>> Please take a look at the attacked draft proposal for the async
>> function. Comments are encouraged.
>>
>
>
>> Policies
>>
>> The async functions have a policy parameter. Three policies are
>> defined in this paper. ...
>>
>
> I think of a "Policy" as a mixin or some similar technique that lets
> users supply their own flavors. Typically the policy is a template
> parameter, with a concept that defines its requirements. That way the
> user can supply a thread-pool based policy, even if the standard
> library doesn't yet supply a thread-pool.
>
> I don't have any idea if this is feasible for async. If it isn't,
> perhaps your "Policies" should renamed "Options" so that the name does
> raise false expectations.
>
I disagree. "policy" and "policy parameter" has been used for much
longer than templates. and Lawrence uses them correctly here.
More information about the cpp-threads
mailing list