summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastThreadState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/audioflinger/FastThreadState.cpp')
-rw-r--r--services/audioflinger/FastThreadState.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/services/audioflinger/FastThreadState.cpp b/services/audioflinger/FastThreadState.cpp
index 427ada5..d4d6255 100644
--- a/services/audioflinger/FastThreadState.cpp
+++ b/services/audioflinger/FastThreadState.cpp
@@ -14,12 +14,14 @@
* limitations under the License.
*/
+#include "Configuration.h"
#include "FastThreadState.h"
namespace android {
FastThreadState::FastThreadState() :
- mCommand(INITIAL), mColdFutexAddr(NULL), mColdGen(0), mNBLogWriter(NULL)
+ mCommand(INITIAL), mColdFutexAddr(NULL), mColdGen(0), mDumpState(NULL), mNBLogWriter(NULL)
+
{
}
@@ -27,4 +29,21 @@ FastThreadState::~FastThreadState()
{
}
+
+FastThreadDumpState::FastThreadDumpState() :
+ mCommand(FastThreadState::INITIAL), mUnderruns(0), mOverruns(0),
+ /* mMeasuredWarmupTs({0, 0}), */
+ mWarmupCycles(0)
+#ifdef FAST_MIXER_STATISTICS
+ , mSamplingN(0), mBounds(0)
+#endif
+{
+ mMeasuredWarmupTs.tv_sec = 0;
+ mMeasuredWarmupTs.tv_nsec = 0;
+}
+
+FastThreadDumpState::~FastThreadDumpState()
+{
+}
+
} // namespace android