Apache Mesos
|
A "process identifier" used to uniquely identify a process when dispatching messages. More...
#include <pid.hpp>
Public Member Functions | |
PID () | |
PID (const T *t) | |
PID (const T &t) | |
template<typename Base > | |
operator PID< Base > () const | |
Public Member Functions inherited from process::UPID | |
UPID ()=default | |
UPID (const UPID &that)=default | |
UPID (UPID &&that)=default | |
UPID (const char *id_, const net::IP &ip_, uint16_t port_) | |
UPID (const char *id_, const network::inet::Address &address_) | |
UPID (const std::string &id_, const net::IP &ip_, uint16_t port_) | |
UPID (const std::string &id_, const network::inet::Address &address_) | |
UPID (const char *s) | |
UPID (const std::string &s) | |
UPID (const ProcessBase &process) | |
UPID & | operator= (const UPID &that)=default |
UPID & | operator= (UPID &&that)=default |
operator std::string () const | |
operator bool () const | |
bool | operator! () const |
bool | operator< (const UPID &that) const |
bool | operator== (const UPID &that) const |
bool | operator!= (const UPID &that) const |
void | resolve () |
Friends | |
template<typename U > | |
struct | PID |
Additional Inherited Members | |
Public Attributes inherited from process::UPID | |
struct process::UPID::ID | id |
network::inet::Address | address = network::inet4::Address::ANY_ANY() |
struct { | |
Option< network::inet6::Address > v6 | |
} | addresses = {None()} |
Option< std::string > | host |
Protected Attributes inherited from process::UPID | |
Option< std::weak_ptr< ProcessBase * > > | reference = None() |
A "process identifier" used to uniquely identify a process when dispatching messages.
Typed with the actual process class's type, which must be derived from process::ProcessBase
.
Use it like this:
using namespace process;
class SimpleProcess : public Process<SimpleProcess> { // ... };
SimpleProcess process; PID<SimpleProcess> pid = spawn(process);
// ...
dispatchpid, &SimpleProcess::method, "argument");
|
inline |
|
inline |
|
inline |
|
inline |