a handle may also be activated by sharing ownership with a manager
This commit is contained in:
parent
82aee60b14
commit
ba2d4dc761
1 changed files with 9 additions and 0 deletions
|
|
@ -108,6 +108,15 @@ namespace lib {
|
|||
return *this;
|
||||
}
|
||||
|
||||
/** another way of activating a handle by sharing ownership
|
||||
* with an existing smart-ptr */
|
||||
Handle&
|
||||
activate(shared_ptr<IMP> const& impl)
|
||||
{
|
||||
smPtr_ = impl;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/** deactivate this handle, so it isn't tied any longer
|
||||
* to the associated implementation or service object.
|
||||
* When all handles have either been deactivated or
|
||||
|
|
|
|||
Loading…
Reference in a new issue