Ejemplo n.º 1
0
 /// Establishes a link relation between this actor and `x`
 /// and returns whether the operation succeeded.
 inline bool establish_backlink(abstract_actor* x) {
   return link_impl(establish_backlink_op, x);
 }
Ejemplo n.º 2
0
 /// Removes the link relation between this actor and `x`
 /// and returns whether the operation succeeded.
 inline bool remove_backlink(abstract_actor* x) {
   return link_impl(remove_backlink_op, x);
 }
Ejemplo n.º 3
0
 void unlink_from(const ActorHandle& x) {
   auto ptr = actor_cast<abstract_actor*>(x);
   if (!ptr || ptr == this)
     return;
   link_impl(remove_link_op, ptr);
 }
Ejemplo n.º 4
0
 /// Unlinks this actor from `x`.
 void unlink_from(const actor_addr& x) {
   auto ptr = actor_cast<strong_actor_ptr>(x);
   if (!ptr || ptr->get() == this)
     return;
   link_impl(remove_link_op, ptr->get());
 }
Ejemplo n.º 5
0
 void link_to(const ActorHandle& x) {
   auto ptr = actor_cast<abstract_actor*>(x);
   if (!ptr || ptr == this)
     return;
   link_impl(establish_link_op, ptr);
 }
Ejemplo n.º 6
0
 /// Links this actor to `x`.
 void link_to(const actor_addr& x) {
   auto ptr = actor_cast<strong_actor_ptr>(x);
   if (!ptr || ptr->get() == this)
     return;
   link_impl(establish_link_op, ptr->get());
 }