mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-11-04 04:34:07 +01:00 
			
		
		
		
	Amend bizarre clang-format suggestions
This commit is contained in:
		
							parent
							
								
									1e964604bb
								
							
						
					
					
						commit
						530a5a1d09
					
				@ -200,7 +200,7 @@ private:
 | 
			
		||||
 | 
			
		||||
class [[nodiscard]] KScopedSchedulerLock : KScopedLock<GlobalSchedulerContext::LockType> {
 | 
			
		||||
public:
 | 
			
		||||
    explicit KScopedSchedulerLock(KernelCore& kernel);
 | 
			
		||||
    explicit KScopedSchedulerLock(KernelCore & kernel);
 | 
			
		||||
    ~KScopedSchedulerLock();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -22,10 +22,10 @@ concept KLockable = !std::is_reference_v<T> && requires(T & t) {
 | 
			
		||||
template <typename T>
 | 
			
		||||
requires KLockable<T> class [[nodiscard]] KScopedLock {
 | 
			
		||||
public:
 | 
			
		||||
    explicit KScopedLock(T* l) : lock_ptr(l) {
 | 
			
		||||
    explicit KScopedLock(T * l) : lock_ptr(l) {
 | 
			
		||||
        this->lock_ptr->Lock();
 | 
			
		||||
    }
 | 
			
		||||
    explicit KScopedLock(T& l) : KScopedLock(std::addressof(l)) {}
 | 
			
		||||
    explicit KScopedLock(T & l) : KScopedLock(std::addressof(l)) {}
 | 
			
		||||
 | 
			
		||||
    ~KScopedLock() {
 | 
			
		||||
        this->lock_ptr->Unlock();
 | 
			
		||||
@ -34,7 +34,7 @@ public:
 | 
			
		||||
    KScopedLock(const KScopedLock&) = delete;
 | 
			
		||||
    KScopedLock& operator=(const KScopedLock&) = delete;
 | 
			
		||||
 | 
			
		||||
    KScopedLock(KScopedLock&&) = delete;
 | 
			
		||||
    KScopedLock(KScopedLock &&) = delete;
 | 
			
		||||
    KScopedLock& operator=(KScopedLock&&) = delete;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@ namespace Kernel {
 | 
			
		||||
 | 
			
		||||
class [[nodiscard]] KScopedSchedulerLockAndSleep {
 | 
			
		||||
public:
 | 
			
		||||
    explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, KThread* t, s64 timeout)
 | 
			
		||||
    explicit KScopedSchedulerLockAndSleep(KernelCore & kernel, KThread * t, s64 timeout)
 | 
			
		||||
        : kernel(kernel), thread(t), timeout_tick(timeout) {
 | 
			
		||||
        // Lock the scheduler.
 | 
			
		||||
        kernel.GlobalSchedulerContext().scheduler_lock.Lock();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user