foobar2000 SDK  2015-01-14
Public Member Functions
service_impl_explicitshutdown_t< class_t >

#include <service_impl.h>

+ Inheritance diagram for service_impl_explicitshutdown_t< class_t >:

Public Member Functions

int service_add_ref () throw ()
 
int service_release () throw ()
 

Detailed Description

template<typename class_t>
class service_impl_explicitshutdown_t< class_t >

Alternate version of service_impl_t<> - calls this->service_shutdown() instead of delete this.
For special cases where selfdestruct on zero refcount is undesired.

Definition at line 24 of file service_impl.h.

Member Function Documentation

template<typename class_t >
int service_impl_explicitshutdown_t< class_t >::service_add_ref ( )
throw (
)
inline

Definition at line 34 of file service_impl.h.

34 {return ++m_counter;}
template<typename class_t >
int service_impl_explicitshutdown_t< class_t >::service_release ( )
throw (
)
inline

Definition at line 26 of file service_impl.h.

26  {
27  int ret = --m_counter;
28  if (ret == 0) {
29  this->service_shutdown();
30  } else {
31  return ret;
32  }
33  }

The documentation for this class was generated from the following file: