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
10namespace skyway {
11namespace global {
12namespace interface {
13
19class Worker {
20public:
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_ */