VOX
A little voxel engine
Loading...
Searching...
No Matches
Future.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
tasks.hpp
"
4
#include <future>
5
6
namespace
task
7
{
8
9
template
<
typename
T>
10
class
Future
:
public
std::future<T>
11
{
12
public
:
13
Future
();
14
~Future
();
15
Future
(
const
Future
&) =
delete
;
16
Future
&
operator=
(
const
Future
&) =
delete
;
17
Future
(
Future
&&) =
default
;
18
Future
&
operator=
(
Future
&&) =
default
;
19
23
void
cancel
();
24
private
:
25
};
26
}
task::Future
Definition:
Future.hpp:11
task::Future::~Future
~Future()
task::Future::cancel
void cancel()
will try to cancel the taskFlow
task::Future::Future
Future(const Future &)=delete
task::Future::Future
Future()
task::Future::operator=
Future & operator=(const Future &)=delete
task::Future::operator=
Future & operator=(Future &&)=default
task::Future::Future
Future(Future &&)=default
task
Definition:
Executor.cpp:5
tasks.hpp
src
app
threads
task_manager
Future.hpp
Generated by
1.9.5