summaryrefslogblamecommitdiffstats
path: root/src/core/hle/kernel/k_spin_lock.cpp
blob: 527ff0f9fed0ab0a56638a15c854b8171eaef9b1 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                            


                        
               


                          
                 


                           
                          


                     
// Copyright 2021 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include "core/hle/kernel/k_spin_lock.h"

namespace Kernel {

void KSpinLock::Lock() {
    lck.lock();
}

void KSpinLock::Unlock() {
    lck.unlock();
}

bool KSpinLock::TryLock() {
    return lck.try_lock();
}

} // namespace Kernel