connectivity/com.nokia.tcf/native/TCFNative/TCFServer/ServerManager.cpp
changeset 366 b054461d2f85
parent 60 9d2210c8eed2
equal deleted inserted replaced
365:666472f6d7ae 366:b054461d2f85
    26 
    26 
    27 #ifdef _DEBUG
    27 #ifdef _DEBUG
    28 extern BOOL gDoLogging;
    28 extern BOOL gDoLogging;
    29 #endif
    29 #endif
    30 
    30 
    31 #define LOG_SERVERMANAGER
    31 //#define LOG_SERVERMANAGER
    32 #if defined(LOG_SERVERMANAGER) && defined(_DEBUG)
    32 #if defined(LOG_SERVERMANAGER) && defined(_DEBUG)
    33 extern char TCDebugMsg[];
    33 extern char TCDebugMsg[];
    34 #define TCDEBUGOPEN() if (gDoLogging) { m_DebugLog->WaitForAccess(); }
    34 #define TCDEBUGOPEN() if (gDoLogging) { m_DebugLog->WaitForAccess(); }
    35 #define TCDEBUGLOGS(s) if (gDoLogging) { sprintf(TCDebugMsg,"%s", s); m_DebugLog->log(TCDebugMsg); }
    35 #define TCDEBUGLOGS(s) if (gDoLogging) { sprintf(TCDebugMsg,"%s", s); m_DebugLog->log(TCDebugMsg); }
    36 #define TCDEBUGLOGA1(s, a1) if (gDoLogging) { sprintf(TCDebugMsg, s, a1); m_DebugLog->log(TCDebugMsg); }
    36 #define TCDEBUGLOGA1(s, a1) if (gDoLogging) { sprintf(TCDebugMsg, s, a1); m_DebugLog->log(TCDebugMsg); }
    64 	m_CommList = NULL;
    64 	m_CommList = NULL;
    65 
    65 
    66 }
    66 }
    67 CServerManager::CServerManager(const char* exeLocation)
    67 CServerManager::CServerManager(const char* exeLocation)
    68 {
    68 {
    69 #ifdef _DEBUG
    69 #if defined(LOG_SERVERMANAGER) && defined(_DEBUG)
    70 	if (gDoLogging)
    70 	if (gDoLogging)
    71 		m_DebugLog = new TCDebugLog("TCF_ServerLog", ::GetCurrentProcessId());
    71 		m_DebugLog = new TCDebugLog("TCF_ServerLog", ::GetCurrentProcessId());
    72 	else
    72 	else
    73 		m_DebugLog = NULL;
    73 		m_DebugLog = NULL;
    74 #else
    74 #else