diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-01-07 14:59:04 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-01-07 14:59:04 +0100 |
commit | b97736a0a89ecbc3aa2ece133cc0a4839bd1e043 (patch) | |
tree | e4e5ae12f626bbabf8f469491d4a07b76418616e /dxr3audiodecoder.h | |
parent | b17bb75da5810312f1c29d93d92931a4a0fc87f5 (diff) | |
download | vdr-plugin-dxr3-b97736a0a89ecbc3aa2ece133cc0a4839bd1e043.tar.gz vdr-plugin-dxr3-b97736a0a89ecbc3aa2ece133cc0a4839bd1e043.tar.bz2 |
better singleton template
With the old singleton pattern it could happen that two instances are
created. See...
static T& Instance()
{
static T m_Instance;
return m_Instance;
}
static T* InstanceP()
{
static T* m_InstanceP = new T;
return m_InstanceP;
}
Diffstat (limited to 'dxr3audiodecoder.h')
0 files changed, 0 insertions, 0 deletions