History

rename ClosureEventSender to CloseEventSender

Stephen Birarda committed 9 years ago

Commit e3d82291 parent ecc697d3 files · +20 −20Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+9−9
@@ -146,7 +146,7 @@ · 145 unmodified lines
146146 #include "InterfaceLogging.h"
147147 #include "LODManager.h"
148148 #include "ModelPackager.h"
149−#include "networking/ClosureEventSender.h"
149+#include "networking/CloseEventSender.h"
150150 #include "networking/HFWebEngineProfile.h"
151151 #include "networking/HFTabletWebEngineProfile.h"
152152 #include "networking/FileTypeProfile.h"
@@ -537,7 +537,7 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 384 unmodified lines
537537 DependencyManager::set<AvatarBookmarks>();
538538 DependencyManager::set<LocationBookmarks>();
539539 DependencyManager::set<Snapshot>();
540− DependencyManager::set<ClosureEventSender>();
540+ DependencyManager::set<CloseEventSender>();
541541
542542 return previousSessionCrashed;
543543 }
@@ -1572,12 +1572,12 @@ void Application::aboutToQuit() { · 1028 unmodified lines
15721572
15731573 getActiveDisplayPlugin()->deactivate();
15741574
1575− // use the ClosureEventSender via a QThread to send an event that says the user asked for the app to close
1576− auto closureEventSender = DependencyManager::get<ClosureEventSender>();
1575+ // use the CloseEventSender via a QThread to send an event that says the user asked for the app to close
1576+ auto closeEventSender = DependencyManager::get<CloseEventSender>();
15771577 QThread* closureEventThread = new QThread(this);
1578− closureEventSender->moveToThread(closureEventThread);
1578+ closeEventSender->moveToThread(closureEventThread);
15791579 // sendQuitEventAsync will bail immediately if the UserActivityLogger is not enabled
1580− connect(closureEventThread, &QThread::started, closureEventSender.data(), &ClosureEventSender::sendQuitEventAsync);
1580+ connect(closureEventThread, &QThread::started, closeEventSender.data(), &CloseEventSender::sendQuitEventAsync);
15811581 closureEventThread->start();
15821582
15831583 // Hide Running Scripts dialog so that it gets destroyed in an orderly manner; prevents warnings at shutdown.
@@ -1745,13 +1745,13 @@ Application::~Application() { · 161 unmodified lines
17451745 _window->deleteLater();
17461746
17471747 // make sure that the quit event has finished sending before we take the application down
1748− auto closureEventSender = DependencyManager::get<ClosureEventSender>();
1749− while (!closureEventSender->hasFinishedQuitEvent() && !closureEventSender->hasTimedOutQuitEvent()) {
1748+ auto closeEventSender = DependencyManager::get<CloseEventSender>();
1749+ while (!closeEventSender->hasFinishedQuitEvent() && !closeEventSender->hasTimedOutQuitEvent()) {
17501750 // yield so we're not spinning
17511751 std::this_thread::yield();
17521752 }
17531753 // quit the thread used by the closure event sender
1754− closureEventSender->thread()->quit();
1754+ closeEventSender->thread()->quit();
17551755
17561756 // Can't log to file passed this point, FileLogger about to be deleted
17571757 qInstallMessageHandler(LogHandler::verboseMessageHandler);

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