Go to the source code of this file.
|
#define | TEMPLATE(Z, N, DATA) |
|
#define | TEMPLATE(Z, N, DATA) |
|
#define | TEMPLATE(Z, N, DATA) |
|
#define | TEMPLATE(Z, N, DATA) |
|
#define | TEMPLATE(Z, N, DATA) |
|
|
template<typename F > |
Future< typename result_of< F()>::type > | process::async (const F &f, typename std::enable_if<!std::is_void< typename result_of< F()>::type >::value >::type *=nullptr) |
|
template<typename F > |
Future< Nothing > | process::async (const F &f, typename std::enable_if< std::is_void< typename result_of< F()>::type >::value >::type *=nullptr) |
|
| process::REPEAT_FROM_TO (1, 13, TEMPLATE, _) class AsyncExecutorProcess |
|
#define TEMPLATE |
( |
|
Z, |
|
|
|
N, |
|
|
|
DATA |
|
) |
| |
Value:template <
typename F, ENUM_PARAMS(N,
typename A)>
\ typename std::enable_if<!std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type* =
nullptr); \
\
\
template <typename F, ENUM_PARAMS(N, typename A)> \
const F& f, \
typename std::enable_if<std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type* =
nullptr);
F && f
Definition: defer.hpp:270
Future< Nothing > async(const F &f, typename std::enable_if< std::is_void< typename result_of< F()>::type >::value >::type *=nullptr)
Definition: async.hpp:247
#define ENUM_BINARY_PARAMS
Definition: preprocessor.hpp:36
Try< uint32_t > type(const std::string &path)
#define ENUM_PARAMS
Definition: preprocessor.hpp:35
#define TEMPLATE |
( |
|
Z, |
|
|
|
N, |
|
|
|
DATA |
|
) |
| |
Value:template < \
typename std::enable_if< \
!std::is_void< \
} \
\
template < \
typename std::enable_if< \
std::is_void< \
}
Definition: nothing.hpp:16
void execute(const std::string &script)
F && f
Definition: defer.hpp:270
void terminate(const UPID &pid, bool inject=true)
Sends a TerminateEvent to the given process.
#define ENUM_BINARY_PARAMS
Definition: preprocessor.hpp:36
Try< uint32_t > type(const std::string &path)
#define ENUM_PARAMS
Definition: preprocessor.hpp:35
#define TEMPLATE |
( |
|
Z, |
|
|
|
N, |
|
|
|
DATA |
|
) |
| |
Value:template <typename F, ENUM_PARAMS(N, typename A)> \
typename std::enable_if<!std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type*); \
\
template <typename F, ENUM_PARAMS(N, typename A)> \
friend Future<Nothing>
async( \
const F& f, \
typename std::enable_if<std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type*);
F && f
Definition: defer.hpp:270
Future< Nothing > async(const F &f, typename std::enable_if< std::is_void< typename result_of< F()>::type >::value >::type *=nullptr)
Definition: async.hpp:247
#define ENUM_BINARY_PARAMS
Definition: preprocessor.hpp:36
Try< uint32_t > type(const std::string &path)
#define ENUM_PARAMS
Definition: preprocessor.hpp:35
#define TEMPLATE |
( |
|
Z, |
|
|
|
N, |
|
|
|
DATA |
|
) |
| |
Value:template <
typename F, ENUM_PARAMS(N,
typename A)>
\ typename std::enable_if<!std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type* =
nullptr) \
{ \
\
\
} \
\
template <typename F, ENUM_PARAMS(N, typename A)> \
const F& f, \
typename std::enable_if<std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type* =
nullptr) \
{ \
\
Nothing(AsyncExecutorProcess::*method)(
const F&,
ENUM_PARAMS(N, A)) = \
\
}
void execute(const std::string &script)
F && f
Definition: defer.hpp:270
void dispatch(const UPID &pid, std::unique_ptr< lambda::CallableOnce< void(ProcessBase *)>> f, const Option< const std::type_info * > &functionType=None())
Definition: executor.hpp:48
#define ENUM_BINARY_PARAMS
Definition: preprocessor.hpp:36
Try< uint32_t > type(const std::string &path)
#define ENUM_PARAMS
Definition: preprocessor.hpp:35
#define TEMPLATE |
( |
|
Z, |
|
|
|
N, |
|
|
|
DATA |
|
) |
| |
Value:template <
typename F, ENUM_PARAMS(N,
typename A)>
\ typename std::enable_if<!std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type*) \
{ \
return AsyncExecutor().execute(f,
ENUM_PARAMS(N, a)); \
} \
\
template <typename F, ENUM_PARAMS(N, typename A)> \
const F& f, \
typename std::enable_if<std::is_void<
typename result_of<F(
ENUM_PARAMS(N, A))>::
type>::value>::
type*) \
{ \
return AsyncExecutor().execute(f,
ENUM_PARAMS(N, a)); \
}
F && f
Definition: defer.hpp:270
Future< Nothing > async(const F &f, typename std::enable_if< std::is_void< typename result_of< F()>::type >::value >::type *=nullptr)
Definition: async.hpp:247
#define ENUM_BINARY_PARAMS
Definition: preprocessor.hpp:36
Try< uint32_t > type(const std::string &path)
#define ENUM_PARAMS
Definition: preprocessor.hpp:35