コード例 #1
0
ファイル: simple_refcnt_checker.hpp プロジェクト: 7ev3n/hpx
 /// 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());
 }
コード例 #2
0
ファイル: simple_refcnt_checker.hpp プロジェクト: zcourts/hpx
    bool is_ready()
    {
        // Flush pending reference counting operations on the target locality.
        agas::garbage_collect(locality_);

        return flag_.is_ready();
    }
コード例 #3
0
ファイル: simple_refcnt_checker.hpp プロジェクト: zcourts/hpx
 /// 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());
 }
コード例 #4
0
ファイル: managed_refcnt_checker.hpp プロジェクト: adk9/hpx
 /// Create a new component on the target locality.
 explicit managed_refcnt_monitor(
     naming::id_type const& locality
     )
   : locality_(naming::get_locality_from_id(locality))
 {
     this->base_type::create(locality_, flag_.get_gid());
 }
コード例 #5
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());
 }
コード例 #6
0
ファイル: simple_refcnt_checker.hpp プロジェクト: zcourts/hpx
    bool is_ready(
        Duration const& d
        )
    {
        // Flush pending reference counting operations on the target locality.
        agas::garbage_collect(locality_);

        // Schedule a wakeup.
        threads::set_thread_state(threads::get_self_id(), d, threads::pending);

        // Suspend this pxthread.
        threads::get_self().yield(threads::suspended);

        return flag_.is_ready();
    }