SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
worker.hpp
1
//
2
// © NTT DOCOMO BUSINESS, Inc. All Rights Reserved.
3
//
4
5
#ifndef SKYWAY_GLOBAL_INTERFACE_WORKER_HPP_
6
#define SKYWAY_GLOBAL_INTERFACE_WORKER_HPP_
7
8
#include <functional>
9
10
namespace
skyway {
11
namespace
global {
12
namespace
interface {
13
19
class
Worker {
20
public
:
21
using
Task = std::function<void()>;
22
virtual
~Worker() =
default
;
30
virtual
void
AddTask(Task& task) = 0;
31
39
virtual
void
AddTask(
const
Task&& task) = 0;
40
45
virtual
void
Join() = 0;
46
};
48
49
}
// namespace interface
50
}
// namespace global
51
}
// namespace skyway
52
53
#endif
/* SKYWAY_GLOBAL_INTERFACE_WORKER_HPP_ */
include
skyway
global
interface
worker.hpp
構築:
1.9.8