~StandardCssm();
void setCssm(CssmImpl *cssm);
void unsetCssm(CssmImpl *cssm);
- CssmImpl *get();
+ Cssm get();
private:
- CssmImpl *mCssm;
+ RefPointer<CssmImpl> mCssm; // 'Leaks' this object (in that it won't ever be deleted after creation), but
+ // there's no safe way to vend and re-create this object in a multi-threaded environment
+ // without an implementation of WeakRefPointer<>.
};
static ModuleNexus<StandardCssm> mStandard;
};