Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
Loading...
Searching...
No Matches
BackgroundTask.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
#include "mc/deps/core/threading/Async.h"
6
#include "mc/deps/core/threading/BackgroundTaskBase.h"
7
#include "mc/deps/core/threading/IBackgroundTaskOwner.h"
8
#include "mc/deps/core/threading/TaskStartInfo.h"
9
#include "mc/platform/brstd/move_only_function.h"
10
11
// clang-format off
12
class
TaskResult
;
13
// clang-format on
14
15
template
<
typename
T0,
typename
T1>
16
class
BackgroundTask
:
public
::BackgroundTaskBase {
17
public
:
18
// The task details base, the lock and the completion-handler vector are containers this
19
// repository has not reconstructed, so they are pinned down by size only. Everything after them
20
// has to sit at the offset the game gives it.
21
::ll::UntypedStorage<8, 88>
mUnkDetails;
// 0x70 TaskDetails::BackgroundTaskDetails<T0, T1>
22
::ll::UntypedStorage<8, 80>
mUnkLock;
// 0xC8 Bedrock::Threading::Mutex
23
::ll::UntypedStorage<4, 4>
mUnkStatus;
// 0x118 TaskStatus
24
::ll::UntypedStorage<8, 24>
mUnkComplete;
// 0x120 vector<CompletionHandlerInfo>
25
::ll::UntypedStorage<1, 1>
mUnkLinkCancellation;
// 0x138 bool
26
::ll::UntypedStorage<8, 16>
mUnkPredecessor;
// 0x140 Bedrock::Threading::SharedAsync<T1>
27
28
public
:
29
MCAPI static ::std::shared_ptr<::BackgroundTask<T0, T1>> create(
30
::gsl::not_null<::IBackgroundTaskOwner*> owner,
31
::TaskStartInfo
const
& startInfo,
32
::Bedrock::Threading::Async<T1>
predecessor,
33
bool
isAsync,
34
::brstd::move_only_function
<T0()> task
35
);
36
};
BackgroundTask
Definition
BackgroundTask.h:16
Bedrock::Threading::Async
The game spells this as an AsyncImplBase<T> base subobject holding the handle; a member at the same o...
Definition
Async.h:13
TaskResult
Definition
TaskResult.h:5
brstd::move_only_function
Definition
move_only_function.h:9
TaskStartInfo
Definition
TaskStartInfo.h:5
ll::UntypedStorage
Definition
Alias.h:14
src
mc
deps
core
threading
BackgroundTask.h
Generated on
for LeviLamina by
1.16.1