mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 22:59:13 +00:00
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
29 lines
529 B
C++
29 lines
529 B
C++
/*
|
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Arch/ScopedCritical.h>
|
|
|
|
#include <Kernel/Arch/Processor.h>
|
|
|
|
namespace Kernel {
|
|
|
|
ScopedCritical::ScopedCritical() = default;
|
|
ScopedCritical::~ScopedCritical() = default;
|
|
|
|
ScopedCritical::ScopedCritical(ScopedCritical&& /*from*/)
|
|
{
|
|
}
|
|
|
|
ScopedCritical& ScopedCritical::operator=(ScopedCritical&& /*from*/)
|
|
{
|
|
return *this;
|
|
}
|
|
|
|
void ScopedCritical::leave() { }
|
|
|
|
void ScopedCritical::enter() { }
|
|
|
|
}
|