LeviLamina
Loading...
Searching...
No Matches
SubChunkInterlocker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/threading/SpinLockImpl.h"
7
8// auto generated forward declare list
9// clang-format off
10class SpinLockImpl;
11class SubChunkPos;
12// clang-format on
13
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<8, 32, ::SpinLockImpl> mSpinLock;
19 ::ll::TypedStorage<8, 24, ::std::vector<::SubChunkPos>> mLocked3x3x3SubChunks;
20 // NOLINTEND
21
22public:
23 // member functions
24 // NOLINTBEGIN
25 MCNAPI bool tryLock3x3xN(::SubChunkPos const& bottom, int top);
26
27 MCNAPI void unlock3x3xN(::SubChunkPos const& bottom, int top);
28 // NOLINTEND
29};
Definition SpinLockImpl.h:5
Definition SubChunkInterlocker.h:14
MCAPI void unlock3x3xN(::SubChunkPos const &bottom, int top)
MCAPI bool tryLock3x3xN(::SubChunkPos const &bottom, int top)
Definition SubChunkPos.h:5