LeviLamina
Loading...
Searching...
No Matches
ServerThreadExecutor.h
1
#pragma once
2
3
#include "ll/api/coro/Executor.h"
4
5
namespace
ll::thread {
6
class
ServerThreadExecutor
final :
public
coro::Executor
{
7
struct
Impl;
8
std::unique_ptr<Impl> impl;
9
10
public
:
11
LLAPI
ServerThreadExecutor
(std::string name, Duration maxOnceDuration,
size_t
checkPack);
12
13
LLAPI
~ServerThreadExecutor
()
override
;
14
15
LLAPI
void
execute(std::function<
void
()>)
const override
;
16
17
LLAPI std::shared_ptr<data::CancellableCallback> executeAfter(std::function<
void
()>, Duration)
const override
;
18
19
LLNDAPI
static
ServerThreadExecutor
const
& getDefault();
20
};
21
}
// namespace ll::thread
ll::coro::Executor
Definition
Executor.h:17
ll::thread::ServerThreadExecutor
Definition
ServerThreadExecutor.h:6
src
ll
api
thread
ServerThreadExecutor.h
Generated on Sat Apr 26 2025 05:55:20 for LeviLamina by
1.12.0