summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2014-04-21 12:09:42 -0500
committerMark Salyzyn2014-05-01 12:20:51 -0500
commitfdabe7287609af29793bb6ca15712582ba082521 (patch)
treec2b3289b1ad8a703953e3ee5f4077a4a12bc8f4f /logd/LogStatistics.h
parent9ed86eff8890446f0d0b281a26a71c233f95f4c0 (diff)
downloadplatform-system-core-fdabe7287609af29793bb6ca15712582ba082521.tar.gz
platform-system-core-fdabe7287609af29793bb6ca15712582ba082521.tar.xz
platform-system-core-fdabe7287609af29793bb6ca15712582ba082521.zip
logd: oneline statistics does not report PID gone
- oneline, add check for gone - Add pidGone() method, which caches the gone status Change-Id: I8f03daeafb58583c2b08ec6b540486c05da0872d
Diffstat (limited to 'logd/LogStatistics.h')
-rw-r--r--logd/LogStatistics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/logd/LogStatistics.h b/logd/LogStatistics.h
index cd6ef7b54..37331377f 100644
--- a/logd/LogStatistics.h
+++ b/logd/LogStatistics.h
@@ -37,6 +37,7 @@ class PidStatistics {
37 size_t mElements; 37 size_t mElements;
38 38
39 char *name; 39 char *name;
40 bool mGone;
40 41
41public: 42public:
42 static const pid_t gone = (pid_t) -1; 43 static const pid_t gone = (pid_t) -1;
@@ -46,6 +47,7 @@ public:
46 ~PidStatistics(); 47 ~PidStatistics();
47 48
48 pid_t getPid() const { return pid; } 49 pid_t getPid() const { return pid; }
50 bool pidGone();
49 char *getName() const { return name; } 51 char *getName() const { return name; }
50 void setName(char *name); 52 void setName(char *name);
51 53