summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2015-05-12 17:21:31 -0500
committerMark Salyzyn2015-05-12 17:51:46 -0500
commit7718778793b106498b931dd708a466cf3a6f6a0f (patch)
tree6de1d5da6e95c1cce7e55674c0947eb75aafa321 /logd/LogTimes.cpp
parente1f2004ecc05ce2d5d4313d16c7791594643f2ef (diff)
downloadplatform-system-core-7718778793b106498b931dd708a466cf3a6f6a0f.tar.gz
platform-system-core-7718778793b106498b931dd708a466cf3a6f6a0f.tar.xz
platform-system-core-7718778793b106498b931dd708a466cf3a6f6a0f.zip
logd: Cleanup
- Android Coding Standard for Constructors - Side effects NONE Change-Id: I2cda9dd73f3ac3ab58f394015cb810820093d47b
Diffstat (limited to 'logd/LogTimes.cpp')
-rw-r--r--logd/LogTimes.cpp35
1 files changed, 17 insertions, 18 deletions
diff --git a/logd/LogTimes.cpp b/logd/LogTimes.cpp
index 1b60b7ead..ec67c07e8 100644
--- a/logd/LogTimes.cpp
+++ b/logd/LogTimes.cpp
@@ -26,24 +26,23 @@ pthread_mutex_t LogTimeEntry::timesLock = PTHREAD_MUTEX_INITIALIZER;
26LogTimeEntry::LogTimeEntry(LogReader &reader, SocketClient *client, 26LogTimeEntry::LogTimeEntry(LogReader &reader, SocketClient *client,
27 bool nonBlock, unsigned long tail, 27 bool nonBlock, unsigned long tail,
28 unsigned int logMask, pid_t pid, 28 unsigned int logMask, pid_t pid,
29 uint64_t start) 29 uint64_t start) :
30 : mRefCount(1) 30 mRefCount(1),
31 , mRelease(false) 31 mRelease(false),
32 , mError(false) 32 mError(false),
33 , threadRunning(false) 33 threadRunning(false),
34 , mReader(reader) 34 mReader(reader),
35 , mLogMask(logMask) 35 mLogMask(logMask),
36 , mPid(pid) 36 mPid(pid),
37 , mCount(0) 37 mCount(0),
38 , mTail(tail) 38 mTail(tail),
39 , mIndex(0) 39 mIndex(0),
40 , mClient(client) 40 mClient(client),
41 , mStart(start) 41 mStart(start),
42 , mNonBlock(nonBlock) 42 mNonBlock(nonBlock),
43 , mEnd(LogBufferElement::getCurrentSequence()) 43 mEnd(LogBufferElement::getCurrentSequence()) {
44{ 44 pthread_cond_init(&threadTriggeredCondition, NULL);
45 pthread_cond_init(&threadTriggeredCondition, NULL); 45 cleanSkip_Locked();
46 cleanSkip_Locked();
47} 46}
48 47
49void LogTimeEntry::startReader_Locked(void) { 48void LogTimeEntry::startReader_Locked(void) {