Lines Matching refs:signalTime

64 FenceTime::FenceTime(nsecs_t signalTime)  in FenceTime()  argument
65 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID), in FenceTime()
67 mSignalTime(signalTime) { in FenceTime()
87 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in applyTrustedSnapshot() local
88 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in applyTrustedSnapshot()
92 if (CC_UNLIKELY(signalTime != src.signalTime)) { in applyTrustedSnapshot()
95 signalTime, src.signalTime); in applyTrustedSnapshot()
102 mSignalTime.store(src.signalTime, std::memory_order_relaxed); in applyTrustedSnapshot()
114 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in getSignalTime() local
115 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSignalTime()
116 return signalTime; in getSignalTime()
137 signalTime = fence->getSignalTime(); in getSignalTime()
142 if (signalTime == Fence::SIGNAL_TIME_INVALID) { in getSignalTime()
143 signalTime = Fence::SIGNAL_TIME_PENDING; in getSignalTime()
149 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSignalTime()
152 mSignalTime.store(signalTime, std::memory_order_relaxed); in getSignalTime()
155 return signalTime; in getSignalTime()
166 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in getSnapshot() local
167 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSnapshot()
168 return Snapshot(signalTime); in getSnapshot()
173 signalTime = mSignalTime.load(std::memory_order_relaxed); in getSnapshot()
174 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSnapshot()
175 return Snapshot(signalTime); in getSnapshot()
190 void FenceTime::signalForTest(nsecs_t signalTime) { in signalForTest() argument
196 mSignalTime.store(signalTime, std::memory_order_relaxed); in signalForTest()
207 : state(State::SIGNAL_TIME), signalTime(srcSignalTime) { in Snapshot()
218 return min + sizeof(signalTime); in getFlattenedSize()
240 FlattenableUtils::write(buffer, size, signalTime); in flatten()
261 if (size < sizeof(signalTime)) { in unflatten()
264 FlattenableUtils::read(buffer, size, signalTime); in unflatten()
328 const sp<Fence>& fence, nsecs_t signalTime) { in signalAllForTest() argument
341 fenceTime->signalForTest(signalTime); in signalAllForTest()