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