summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastThreadDumpState.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-03 12:17:06 -0800
committerGlenn Kasten <gkasten@google.com>2015-03-03 15:56:01 -0800
commit8a0554c63dc40a2a7c066b03041079ec9eb220e5 (patch)
tree4e3739739382f654e9c7b4eb1335e0346ae9f967 /services/audioflinger/FastThreadDumpState.h
parent4dd03b5b68dcd8eb5f5ffe2cfe93d26b8f08b848 (diff)
downloadframeworks_av-8a0554c63dc40a2a7c066b03041079ec9eb220e5.zip
frameworks_av-8a0554c63dc40a2a7c066b03041079ec9eb220e5.tar.gz
frameworks_av-8a0554c63dc40a2a7c066b03041079ec9eb220e5.tar.bz2
Pull up comment to superclass
Change-Id: I2e3632ee80744f2f8d932ac1a8597ff805883851
Diffstat (limited to 'services/audioflinger/FastThreadDumpState.h')
-rw-r--r--services/audioflinger/FastThreadDumpState.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/services/audioflinger/FastThreadDumpState.h b/services/audioflinger/FastThreadDumpState.h
index bbca7da..1ce0914 100644
--- a/services/audioflinger/FastThreadDumpState.h
+++ b/services/audioflinger/FastThreadDumpState.h
@@ -22,7 +22,12 @@
namespace android {
-// FIXME extract common part of comment at FastMixerDumpState
+// The FastThreadDumpState keeps a cache of FastThread statistics that can be logged by dumpsys.
+// Each individual native word-sized field is accessed atomically. But the
+// overall structure is non-atomic, that is there may be an inconsistency between fields.
+// No barriers or locks are used for either writing or reading.
+// Only POD types are permitted, and the contents shouldn't be trusted (i.e. do range checks).
+// It has a different lifetime than the FastThread, and so it can't be a member of FastThread.
struct FastThreadDumpState {
FastThreadDumpState();
/*virtual*/ ~FastThreadDumpState();