diff options
Diffstat (limited to 'linden/indra/llwindow')
-rw-r--r-- | linden/indra/llwindow/llwindow.cpp | 5 | ||||
-rw-r--r-- | linden/indra/llwindow/llwindow.h | 1 | ||||
-rw-r--r-- | linden/indra/llwindow/llwindowwin32.cpp | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/llwindow/llwindow.cpp b/linden/indra/llwindow/llwindow.cpp index 890143d..f4ee8cc 100644 --- a/linden/indra/llwindow/llwindow.cpp +++ b/linden/indra/llwindow/llwindow.cpp | |||
@@ -203,6 +203,11 @@ BOOL LLWindowCallbacks::handleDeviceChange(LLWindow *window) | |||
203 | return FALSE; | 203 | return FALSE; |
204 | } | 204 | } |
205 | 205 | ||
206 | void LLWindowCallbacks::handlePingWatchdog(LLWindow *window, const char * msg) | ||
207 | { | ||
208 | |||
209 | } | ||
210 | |||
206 | S32 OSMessageBox(const std::string& text, const std::string& caption, U32 type) | 211 | S32 OSMessageBox(const std::string& text, const std::string& caption, U32 type) |
207 | { | 212 | { |
208 | // Properly hide the splash screen when displaying the message box | 213 | // Properly hide the splash screen when displaying the message box |
diff --git a/linden/indra/llwindow/llwindow.h b/linden/indra/llwindow/llwindow.h index 82e95a8..cee83b9 100644 --- a/linden/indra/llwindow/llwindow.h +++ b/linden/indra/llwindow/llwindow.h | |||
@@ -119,6 +119,7 @@ public: | |||
119 | virtual void handleDataCopy(LLWindow *window, S32 data_type, void *data); | 119 | virtual void handleDataCopy(LLWindow *window, S32 data_type, void *data); |
120 | virtual BOOL handleTimerEvent(LLWindow *window); | 120 | virtual BOOL handleTimerEvent(LLWindow *window); |
121 | virtual BOOL handleDeviceChange(LLWindow *window); | 121 | virtual BOOL handleDeviceChange(LLWindow *window); |
122 | virtual void handlePingWatchdog(LLWindow *window, const char * msg); | ||
122 | }; | 123 | }; |
123 | 124 | ||
124 | // Refer to llwindow_test in test/common/llwindow for usage example | 125 | // Refer to llwindow_test in test/common/llwindow for usage example |
diff --git a/linden/indra/llwindow/llwindowwin32.cpp b/linden/indra/llwindow/llwindowwin32.cpp index 047fa31..3729a71 100644 --- a/linden/indra/llwindow/llwindowwin32.cpp +++ b/linden/indra/llwindow/llwindowwin32.cpp | |||
@@ -1575,7 +1575,9 @@ void LLWindowWin32::gatherInput() | |||
1575 | 1575 | ||
1576 | while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) && msg_count < MAX_MESSAGE_PER_UPDATE) | 1576 | while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) && msg_count < MAX_MESSAGE_PER_UPDATE) |
1577 | { | 1577 | { |
1578 | mCallbacks->handlePingWatchdog(this, "Main:TranslateGatherInput"); | ||
1578 | TranslateMessage(&msg); | 1579 | TranslateMessage(&msg); |
1580 | mCallbacks->handlePingWatchdog(this, "Main:DispatchGatherInput"); | ||
1579 | DispatchMessage(&msg); | 1581 | DispatchMessage(&msg); |
1580 | msg_count++; | 1582 | msg_count++; |
1581 | 1583 | ||
@@ -1602,7 +1604,7 @@ void LLWindowWin32::gatherInput() | |||
1602 | } | 1604 | } |
1603 | } | 1605 | } |
1604 | */ | 1606 | */ |
1605 | 1607 | mCallbacks->handlePingWatchdog(this, "Main:AsyncCallbackGatherInput"); | |
1606 | // For async host by name support. Really hacky. | 1608 | // For async host by name support. Really hacky. |
1607 | if (gAsyncMsgCallback && (LL_WM_HOST_RESOLVED == msg.message)) | 1609 | if (gAsyncMsgCallback && (LL_WM_HOST_RESOLVED == msg.message)) |
1608 | { | 1610 | { |