Passed scheduler as a shared pointer into the callback.
Passed scheduler as a shared pointer into the callback.

To ensure the lifetime of the scheduler is longer than the lifetime
of the scheduler library driver, pass scheduler as a shared_ptr.

Review: https://reviews.apache.org/r/63615/

asamerh4/mesos,jpeach/mesos,Gilbert88/mesos,chhsia0/mesos,abudnik/mesos,Gilbert88/mesos,chhsia0/mesos,andschwa/mesos,kaysoky/mesos,abudnik/mesos,asamerh4/mesos,kaysoky/mesos,dforsyth/mesos,gsantovena/mesos,chhsia0/mesos,reneploetz/mesos,jpeach/mesos,jpeach/mesos,kaysoky/mesos,reneploetz/mesos,chhsia0/mesos,gsantovena/mesos,Gilbert88/mesos,reneploetz/mesos,kaysoky/mesos,jpeach/mesos,andschwa/mesos,andschwa/mesos,reneploetz/mesos,asamerh4/mesos,dforsyth/mesos,gsantovena/mesos,abudnik/mesos,Gilbert88/mesos,gsantovena/mesos,reneploetz/mesos,dforsyth/mesos,reneploetz/mesos,jpeach/mesos,asamerh4/mesos,dforsyth/mesos,andschwa/mesos,chhsia0/mesos,jpeach/mesos,andschwa/mesos,dforsyth/mesos,Gilbert88/mesos,dforsyth/mesos,abudnik/mesos,andschwa/mesos,Gilbert88/mesos,gsantovena/mesos,chhsia0/mesos,jpeach/mesos,chhsia0/mesos,asamerh4/mesos,gsantovena/mesos,kaysoky/mesos,kaysoky/mesos,Gilbert88/mesos,abudnik/mesos,kaysoky/mesos,andschwa/mesos,gsantovena/mesos,abudnik/mesos,asamerh4/mesos,dforsyth/mesos,abudnik/mesos,reneploetz/mesos,asamerh4/mesos