add support for adopting a shared_ptr
Summary: When incrementally adding in MasterPtr to an existing code-base there are some shared_ptr<> (eg. returned from factories) that need to be stored in MasterPtr. since unique_ptr converts to shared_ptr, just take and store a shared_ptr Yes, this removes the guarantee that ~T() will run in join(). I am open to suggestions Reviewed By: andriigrynenko Differential Revision: D19583122 fbshipit-source-id: 3daf0436d56b9c396b5e82d397ebaf93ed1a2a2d
Showing
Please register or sign in to comment