Go to the source code of this file.
|
template<typename R > |
Future< R > | process::run (R(*method)()) |
|
#define TEMPLATE |
( |
|
Z, |
|
|
|
N, |
|
|
|
DATA |
|
) |
| |
Value: { \
std::shared_ptr<lambda::function<R()>> thunk( \
new lambda::function<R()>( \
\
std::shared_ptr<Promise<R>>
promise(
new Promise<R>()); \
\
return future; \
}
UPID spawn(ProcessBase *process, bool manage=false)
Spawn a new process.
void terminate(const UPID &pid, bool inject=true)
Sends a TerminateEvent to the given process.
Protocol< PromiseRequest, PromiseResponse > promise
Future< R > run(R(*method)())
Definition: run.hpp:55
#define ENUM_BINARY_PARAMS
Definition: preprocessor.hpp:36
Try< Nothing > bind(int_fd s, const Address &address)
Definition: network.hpp:46
#define ENUM_PARAMS
Definition: preprocessor.hpp:35