Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a68a5167 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

logd: logtimes switch to std::list

(cherry pick from commit 98dca2d0)

Bug: 23350706
Change-Id: Icc60dd06119ea20a22610644ff880d5135363aba
parent edc6f52a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ void FlushCommand::runSocketCommand(SocketClient *client) {
            return;
        }
        entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, mPid, mStart);
        times.push_back(entry);
        times.push_front(entry);
    }

    client->incRef();
+5 −3
Original line number Diff line number Diff line
@@ -20,8 +20,10 @@
#include <pthread.h>
#include <time.h>
#include <sys/types.h>

#include <list>

#include <sysutils/SocketClient.h>
#include <utils/List.h>
#include <log/log.h>

class LogReader;
@@ -107,6 +109,6 @@ public:
    static int FilterSecondPass(const LogBufferElement *element, void *me);
};

typedef android::List<LogTimeEntry *> LastLogTimes;
typedef std::list<LogTimeEntry *> LastLogTimes;

#endif
#endif // _LOGD_LOG_TIMES_H__