LeviLamina
Loading...
Searching...
No Matches
SpinLockImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<1, 1, ::std::hash<::std::thread::id>> mThreadHasher;
10 ::ll::TypedStorage<8, 8, uint64 const> mNoThreadId;
11 ::ll::TypedStorage<8, 8, ::std::atomic<uint64>> mOwnerThread;
12 ::ll::TypedStorage<4, 4, uint> mOwnerRefCount;
13 // NOLINTEND
14
15public:
16 // member functions
17 // NOLINTBEGIN
18 MCAPI void lock();
19
20 MCAPI_C void unlock();
21 // NOLINTEND
22};
Definition SpinLockImpl.h:5