Esempio n. 1
0
 /// Create a new component on the target locality.
 explicit simple_refcnt_monitor(
     naming::id_type const& locality
     )
   : locality_(naming::get_locality_from_id(locality))
 {
     gid_ = stub_type::create_async(locality_, flag_.get_id());
 }
Esempio n. 2
0
 /// Create a new component on the target locality.
 explicit managed_refcnt_monitor(
     naming::gid_type const& locality
     )
   : locality_(naming::get_locality_from_gid(locality)
             , naming::id_type::unmanaged)
 {
     gid_ = stub_type::create_async(locality_, flag_.get_id());
 }
Esempio n. 3
0
 /// Create a new component on the target locality.
 explicit simple_refcnt_monitor(naming::id_type const& locality)
   : base_type()
   , flag_promise_()
   , flag_(flag_promise_.get_future())
   , locality_(naming::get_locality_from_id(locality))
 {
     static_cast<base_type&>(*this) =
         stub_type::create_async(locality_, flag_promise_.get_id());
 }