blob: 17405350d5fc8595382aaf3ca4b1ef99338d0ac1 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/arch/intrin.h>
#include <lib/concurrent/>
#include <platform.h>
namespace internal {
struct FuchsiaKernelOsal {
static zx_time_t GetClockMonotonic() { return current_time(); }
static void ArchYield() { arch::Yield(); }
} // namespace internal
// Manually expand the SeqLock templates using the Fuchsia user-mode OSAL
template class ::concurrent::internal::SeqLock<::internal::FuchsiaKernelOsal,
template class ::concurrent::internal::SeqLock<::internal::FuchsiaKernelOsal,