18 #include <ndb_global.h>
20 #include "Emulator.hpp"
21 #include <FastScheduler.hpp>
22 #include <SignalLoggerManager.hpp>
23 #include <TransporterRegistry.hpp>
24 #include <TimeQueue.hpp>
26 #include "Configuration.hpp"
27 #include "WatchDog.hpp"
28 #include "ThreadConfig.hpp"
29 #include "SimBlockList.hpp"
31 #include <NodeState.hpp>
32 #include "ndbd_malloc_impl.hpp"
37 #include <EventLogger.hpp>
44 #ifndef NO_EMULATED_JAM
64 NdbMutex * theShutdownMutex = 0;
82 NdbThread_SetTlsKey(NDB_THREAD_TLS_JAM, (
void *)&theEmulatedJamBuffer);
93 if (theConfiguration == NULL ||
94 theWatchDog == NULL ||
95 theThreadConfig == NULL ||
96 theSimBlockList == NULL ||
97 m_socket_server == NULL ||
98 m_mem_manager == NULL )
100 ERROR_SET(fatal, NDBD_EXIT_MEMALLOC,
101 "Failed to create EmulatorData",
"");
104 if (!(theShutdownMutex = NdbMutex_Create()))
106 ERROR_SET(fatal, NDBD_EXIT_MEMALLOC,
107 "Failed to create shutdown mutex",
"");
114 delete theConfiguration; theConfiguration = 0;
116 delete theWatchDog; theWatchDog = 0;
118 delete theThreadConfig; theThreadConfig = 0;
120 delete theSimBlockList; theSimBlockList = 0;
122 delete m_socket_server; m_socket_server = 0;
123 NdbMutex_Destroy(theShutdownMutex);
125 delete m_mem_manager; m_mem_manager = 0;