diff options
author | McCabe Maxsted | 2009-06-07 23:14:43 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-07 23:14:43 -0700 |
commit | e0a70bea805cf07b92efabca15ffe56a777f90ac (patch) | |
tree | 2c93d38e210832e737d09cff7561373d8d5453b2 /linden/indra/newview/llwatchdog.h | |
parent | 1.1 version final (diff) | |
parent | Merge branch 'sl-base-1.22' into next (diff) | |
download | meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.zip meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.gz meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.bz2 meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.xz |
Moved base up to 1.22
Diffstat (limited to 'linden/indra/newview/llwatchdog.h')
-rw-r--r-- | linden/indra/newview/llwatchdog.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/linden/indra/newview/llwatchdog.h b/linden/indra/newview/llwatchdog.h index d196486..d102a4a 100644 --- a/linden/indra/newview/llwatchdog.h +++ b/linden/indra/newview/llwatchdog.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2007-2008, Linden Research, Inc. | 7 | * Copyright (c) 2007-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -32,6 +32,8 @@ | |||
32 | #ifndef LL_LLTHREADWATCHDOG_H | 32 | #ifndef LL_LLTHREADWATCHDOG_H |
33 | #define LL_LLTHREADWATCHDOG_H | 33 | #define LL_LLTHREADWATCHDOG_H |
34 | 34 | ||
35 | #include <boost/function.hpp> | ||
36 | |||
35 | #ifndef LL_TIMER_H | 37 | #ifndef LL_TIMER_H |
36 | #include "lltimer.h" | 38 | #include "lltimer.h" |
37 | #endif | 39 | #endif |
@@ -85,7 +87,9 @@ public: | |||
85 | void add(LLWatchdogEntry* e); | 87 | void add(LLWatchdogEntry* e); |
86 | void remove(LLWatchdogEntry* e); | 88 | void remove(LLWatchdogEntry* e); |
87 | 89 | ||
88 | void init(); | 90 | typedef boost::function<void (void)> killer_event_callback; |
91 | |||
92 | void init(killer_event_callback func = NULL); | ||
89 | void run(); | 93 | void run(); |
90 | void cleanup(); | 94 | void cleanup(); |
91 | 95 | ||
@@ -98,6 +102,8 @@ private: | |||
98 | LLMutex* mSuspectsAccessMutex; | 102 | LLMutex* mSuspectsAccessMutex; |
99 | LLWatchdogTimerThread* mTimer; | 103 | LLWatchdogTimerThread* mTimer; |
100 | U64 mLastClockCount; | 104 | U64 mLastClockCount; |
105 | |||
106 | killer_event_callback mKillerCallback; | ||
101 | }; | 107 | }; |
102 | 108 | ||
103 | #endif // LL_LLTHREADWATCHDOG_H | 109 | #endif // LL_LLTHREADWATCHDOG_H |