22 #include <kernel_types.h>
23 #include <NdbThread.h>
27 extern "C" void* runWatchDog(
void* w);
30 enum { MAX_WATCHED_THREADS = 64 };
32 struct WatchedThread {
33 Uint32 *m_watchCounter;
41 Uint32 m_slowWarnDelay;
46 Uint32 m_lastCounterValue;
56 Uint32 setCheckInterval(Uint32 interval);
62 bool registerWatchedThread(Uint32 *counter, Uint32 threadId);
64 void unregisterWatchedThread(Uint32 threadId);
85 WatchedThread m_watchedList[MAX_WATCHED_THREADS];
87 Uint32 m_watchedCount;
93 void shutdownSystem(
const char *last_stuck_action);