blob: ccb41f95f6c7c1fe2494903ebfe585525de161c9 [file] [log] [blame]
// Copyright 2017 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.
#ifndef MSD_INTEL_SEMAPHORE_H
#define MSD_INTEL_SEMAPHORE_H
#include <lib/magma/platform/platform_semaphore.h>
#include <lib/magma_service/msd.h>
class MsdIntelAbiSemaphore : public msd::Semaphore {
public:
explicit MsdIntelAbiSemaphore(std::shared_ptr<magma::PlatformSemaphore> ptr)
: ptr_(std::move(ptr)) {}
std::shared_ptr<magma::PlatformSemaphore> ptr() { return ptr_; }
private:
std::shared_ptr<magma::PlatformSemaphore> ptr_;
};
#endif // MSD_INTEL_SEMAPHORE_H