Bug 1351148 Part1: Add include header to TimerThread.h to fix compile errors. r=smaug.

MozReview-Commit-ID: 65UfFMwmSrm
This commit is contained in:
Stone Shih 2017-05-29 17:19:17 +08:00
Родитель a930bf9910
Коммит afa6a2e045
2 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -19,6 +19,7 @@
#include "mozilla/Atomics.h"
#include "mozilla/Attributes.h"
#include "mozilla/Monitor.h"
#include "mozilla/UniquePtr.h"
#include <algorithm>
@ -110,7 +111,8 @@ private:
}
static bool
UniquePtrLessThan(UniquePtr<Entry>& aLeft, UniquePtr<Entry>& aRight)
UniquePtrLessThan(mozilla::UniquePtr<Entry>& aLeft,
mozilla::UniquePtr<Entry>& aRight)
{
// This is reversed because std::push_heap() sorts the "largest" to
// the front of the heap. We want that to be the earliest timer.
@ -123,7 +125,7 @@ private:
}
};
nsTArray<UniquePtr<Entry>> mTimers;
nsTArray<mozilla::UniquePtr<Entry>> mTimers;
uint32_t mAllowedEarlyFiringMicroseconds;
};

Просмотреть файл

@ -132,7 +132,7 @@ public:
nsresult InitCommon(uint32_t aDelayMS, uint32_t aType,
Callback&& newCallback);
nsresult InitCommon(const TimeDuration& aDelay, uint32_t aType,
nsresult InitCommon(const mozilla::TimeDuration& aDelay, uint32_t aType,
Callback&& newCallback);
Callback& GetCallback()
@ -200,9 +200,9 @@ public:
// Updated only after this timer has been removed from the timer thread.
int32_t mGeneration;
TimeDuration mDelay;
mozilla::TimeDuration mDelay;
// Updated only after this timer has been removed from the timer thread.
TimeStamp mTimeout;
mozilla::TimeStamp mTimeout;
#ifdef MOZ_TASK_TRACER
mozilla::tasktracer::TracedTaskCommon mTracedTask;