But isn’t that the point of “SharedScheduler”, in that it may own the current scheduler?

On Nov 6, 2013, at 2:14 PM, kaihowl <notifications@github.com> wrote:

> In src/bin/hyrise/main.cpp:
> 
> > @@ -160,8 +160,9 @@ int main(int argc, char *argv[]) {
> >  #endif
> >  
> >    SharedScheduler::getInstance().init(scheduler_name, worker_threads);
> > +  std::shared_ptr<AbstractTaskScheduler> scheduler = SharedScheduler::getInstance().getScheduler();
> 
> The scheduler instance is used as a weak_ptr to a TaskReadyObserver. Therefore, we need an initial "managing" shared_ptr. This is our suggestion as to where we would like to see this happen.
> 
> —
> Reply to this email directly or view it on GitHub.
>