MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / ~RTDServer

Method ~RTDServer

tools/excelRTD/RTDServer.cpp:34–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34RTDServer::~RTDServer()
35{
36 //Clean up the type information
37 if (m_pTypeInfoInterface != NULL){
38 m_pTypeInfoInterface->Release();
39 m_pTypeInfoInterface = NULL;
40 }
41
42 //Make sure we kill the data thread
43 if (m_dwDataThread != -1){
44 PostThreadMessage( m_dwDataThread, WM_COMMAND, WM_SILENTTERMINATE, 0 );
45 }
46
47 //Decrement the object count
48 InterlockedDecrement( &g_cOb );
49
50 for (Monitors::iterator iMonitor = this->monitors.begin(); iMonitor != this->monitors.end(); ++iMonitor) {
51 delete iMonitor->second;
52 }
53
54 Monitor::RTDMonitor::shutdown();
55}
56
57/******************************************************************************
58* LoadTypeInfo -- Gets the type information of an object's interface from the

Callers

nothing calls this directly

Calls 4

shutdownFunction · 0.50
ReleaseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected