Fixed typo
This commit is contained in:
parent
79b2a0d634
commit
40797b1026
2 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ namespace fc {
|
|||
typedef typename std::remove_const_t< std::remove_reference_t<Functor> > FunctorType;
|
||||
typename task<Result,sizeof(FunctorType)>::ptr tsk =
|
||||
task<Result,sizeof(FunctorType)>::create( std::forward<Functor>(f), desc );
|
||||
tsk->retain(); // HERE BE DRAFONS
|
||||
tsk->retain(); // HERE BE DRAGONS
|
||||
fc::future<Result> r( std::dynamic_pointer_cast< promise<Result> >(tsk) );
|
||||
detail::get_worker_pool().post( tsk.get() );
|
||||
return r;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ namespace fc {
|
|||
typedef typename std::remove_const_t< std::remove_reference_t<Functor> > FunctorType;
|
||||
typename task<Result,sizeof(FunctorType)>::ptr tsk =
|
||||
task<Result,sizeof(FunctorType)>::create( std::forward<Functor>(f), desc );
|
||||
tsk->retain(); // HERE BE DRAFONS
|
||||
tsk->retain(); // HERE BE DRAGONS
|
||||
fc::future<Result> r( std::dynamic_pointer_cast< promise<Result> >(tsk) );
|
||||
async_task(tsk.get(),prio);
|
||||
return r;
|
||||
|
|
@ -112,7 +112,7 @@ namespace fc {
|
|||
typedef decltype(f()) Result;
|
||||
typename task<Result,sizeof(Functor)>::ptr tsk =
|
||||
task<Result,sizeof(Functor)>::create( std::forward<Functor>(f), desc );
|
||||
tsk->retain(); // HERE BE DRAFONS
|
||||
tsk->retain(); // HERE BE DRAGONS
|
||||
fc::future<Result> r( std::dynamic_pointer_cast< promise<Result> >(tsk) );
|
||||
async_task(tsk.get(),prio,when);
|
||||
return r;
|
||||
|
|
|
|||
Loading…
Reference in a new issue