mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Bug 1351148 Part1: Add include header to TimerThread.h to fix compile errors. r=smaug.
MozReview-Commit-ID: 65UfFMwmSrm
This commit is contained in:
parent
123ec37b96
commit
64a5f2d51c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user