SkyWay Linux SDK
Toggle main menu visibility
総合概要
諸情報
クラス
クラス一覧
クラス索引
クラス階層
クラスメンバ
全て
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
関数
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
v
w
変数
c
e
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
列挙型
ファイル
ファイル一覧
•
全て
クラス
関数
変数
列挙型
ページ
読み取り中…
検索中…
一致する文字列を見つけられません
worker.hpp
1
//
2
// worker.hpp
3
// skyway
4
//
5
// Created by Naoto Takahashi on 2024/03/05.
6
// Copyright © 2024 NTT Communications. All rights reserved.
7
//
8
9
#ifndef SKYWAY_GLOBAL_INTERFACE_WORKER_HPP_
10
#define SKYWAY_GLOBAL_INTERFACE_WORKER_HPP_
11
12
#include <functional>
13
14
namespace
skyway {
15
namespace
global {
16
namespace
interface {
17
23
class
Worker {
24
public
:
25
using
Task = std::function<void()>;
26
virtual
~Worker() =
default
;
34
virtual
void
AddTask(Task& task) = 0;
35
43
virtual
void
AddTask(
const
Task&& task) = 0;
44
49
virtual
void
Join() = 0;
50
};
52
53
}
// namespace interface
54
}
// namespace global
55
}
// namespace skyway
56
57
#endif
/* SKYWAY_GLOBAL_INTERFACE_WORKER_HPP_ */
include
skyway
global
interface
worker.hpp
構築:
1.9.8