Program Listing for File spinlock.hpp¶
↰ Return to documentation for file (lib/spinlock.hpp
)
/* SPDX-License-Identifier: BSD-2-Clause */
#pragma once
#include <frg/spinlock.hpp>
namespace Gaia {
class Spinlock {
public:
void lock() { _lock.lock(); }
void unlock() { _lock.unlock(); }
private:
frg::simple_spinlock _lock;
};
} // namespace Gaia