History

mv ShutdownEventListener into class which is a child of QCoreApplication

Seth Alves committed 11 years ago

Commit 0918d491 parent 9f83eab2 files · +8 −8Browse files

Showing the changes to assignment-client/src/AssignmentClientMonitor.cpp (1 of 2 files). Show all

Unified · Split

assignment-client/src/AssignmentClientMonitor.cpp+0−8
@@ -12,7 +12,6 @@ · 11 unmodified lines
12#include <signal.h>12#include <signal.h>
13 13
14#include <LogHandler.h>14#include <LogHandler.h>
15#include <ShutdownEventListener.h>
16#include <AddressManager.h>15#include <AddressManager.h>
17 16
18#include "AssignmentClientMonitor.h"17#include "AssignmentClientMonitor.h"
@@ -40,13 +39,6 @@ AssignmentClientMonitor::AssignmentClientMonitor(const unsigned int numAssignmen · 21 unmodified lines
40{ 39{
41 // start the Logging class with the parent's target name40 // start the Logging class with the parent's target name
42 LogHandler::getInstance().setTargetName(ASSIGNMENT_CLIENT_MONITOR_TARGET_NAME);41 LogHandler::getInstance().setTargetName(ASSIGNMENT_CLIENT_MONITOR_TARGET_NAME);
43
44 // setup a shutdown event listener to handle SIGTERM or WM_CLOSE for us
45#ifdef _WIN32
46 installNativeEventFilter(&ShutdownEventListener::getInstance());
47#else
48 ShutdownEventListener::getInstance();
49#endif
50 42
51 // create a NodeList so we can receive stats from children43 // create a NodeList so we can receive stats from children
52 DependencyManager::registerInheritance<LimitedNodeList, NodeList>();44 DependencyManager::registerInheritance<LimitedNodeList, NodeList>();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t