#include <CApplicationSerializer.h>
Inheritance diagram for CApplicationSerializer:
Static Public Member Functions | |
CApplicationSerializer * | getInstance () |
Private Member Functions | |
CApplicationSerializer () | |
~CApplicationSerializer () | |
Static Private Attributes | |
CApplicationSerializer * | m_pTheInstance = (CApplicationSerializer*)NULL |
the only allowed instance |
Definition at line 304 of file CApplicationSerializer.h.
|
The constructor of CApplicationSerializer is private. Only one object will come into existence, and that as a result of the first getInstance call in the application. All we do is call the base class constructor and set m_pTheInstance to this. Definition at line 302 of file CApplicationSerializer.cpp. References m_pTheInstance, and NULL. |
|
The destructor simply nulls m_pTheInstance. In theory it will never get called. Definition at line 313 of file CApplicationSerializer.cpp. References m_pTheInstance. |
|
getInstance returns an assured non-null pointer to the singleton application serialization mutex: Definition at line 322 of file CApplicationSerializer.cpp. References m_pTheInstance. Referenced by CSocket::Connect(), CDAQTCLProcessor::DeleteRelay(), CEvent::Enable(), CDAQTCLProcessor::EvalRelay(), CFileEvent::Exit(), CTCPConnectionLost::Host(), CEvent::OnEvent(), CSocket::OpenSocket(), CXtEventLoop::operator()(), CTCPConnectionLost::Port(), CBufferEvent< T >::ProcessAddQueue(), CBufferEvent< T >::ProcessDelQueue(), CServerConnectionEvent::Protocol(), and CBufferEvent< U >::STD(). |
|
the only allowed instance
Definition at line 294 of file CApplicationSerializer.cpp. Referenced by CApplicationSerializer(), getInstance(), and ~CApplicationSerializer(). |