mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
Kernel: Rename SpinLockProtectedValue<T> => SpinLockProtected<T>
This commit is contained in:
parent
532ffa7ddb
commit
ed6f84c2c9
14 changed files with 28 additions and 27 deletions
|
@ -11,10 +11,11 @@
|
|||
namespace Kernel {
|
||||
|
||||
template<typename T>
|
||||
class SpinLockProtectedValue : private T
|
||||
class SpinLockProtected
|
||||
: private T
|
||||
, public SpinLockContendedResource {
|
||||
AK_MAKE_NONCOPYABLE(SpinLockProtectedValue);
|
||||
AK_MAKE_NONMOVABLE(SpinLockProtectedValue);
|
||||
AK_MAKE_NONCOPYABLE(SpinLockProtected);
|
||||
AK_MAKE_NONMOVABLE(SpinLockProtected);
|
||||
|
||||
protected:
|
||||
using LockedConst = SpinLockLockedResource<T const>;
|
||||
|
@ -26,7 +27,7 @@ protected:
|
|||
public:
|
||||
using T::T;
|
||||
|
||||
SpinLockProtectedValue() = default;
|
||||
SpinLockProtected() = default;
|
||||
|
||||
template<typename Callback>
|
||||
decltype(auto) with(Callback callback) const
|
Loading…
Add table
Add a link
Reference in a new issue