8 int ret = (int) --m_counter;
10 PFC_ASSERT_NO_EXCEPTION(
delete this );
23 template<
typename class_t>
27 int ret = --m_counter;
29 this->service_shutdown();
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Template implementing dummy version of reference-counting features of service_base. Intended for static/local/member instantiation: "static service_impl_single_t<someclass> myvar(params);". Because reference counting features are disabled (dummy reference counter), code instantiating it is responsible for deleting it as well as ensuring that no references are active when the object gets deleted. Note that some constructor parameters such as NULL will need explicit typecasts to ensure correctly guessed types for constructor function template (null string needs to be (const char*)NULL rather than just NULL, etc).
Alternate version of service_impl_t<> - calls this->service_shutdown() instead of delete this...
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
void release_object_delayed(service_ptr obj)