/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// we're not busy waiting because this is a deterministic schedule
}
}
-}
-}
+} // namespace test
+} // namespace folly
namespace folly {
namespace detail {
template <>
FutexResult Futex<DeterministicAtomic>::futexWaitImpl(
uint32_t expected,
- time_point<system_clock>* absSystemTimeout,
- time_point<steady_clock>* absSteadyTimeout,
+ system_clock::time_point const* absSystemTimeout,
+ steady_clock::time_point const* absSteadyTimeout,
uint32_t waitMask) {
bool hasTimeout = absSystemTimeout != nullptr || absSteadyTimeout != nullptr;
bool awoken = false;
DeterministicSchedule::afterSharedAccess();
return rv;
}
+} // namespace detail
template <>
CacheLocality const& CacheLocality::system<test::DeterministicAtomic>() {
template <>
Getcpu::Func AccessSpreader<test::DeterministicAtomic>::pickGetcpuFunc() {
- return &DeterministicSchedule::getcpu;
-}
-}
+ return &detail::DeterministicSchedule::getcpu;
}
+} // namespace folly