libs/core/async_mpi/include/hpx/async_mpi/mpi_future.hpp
inline void wait()
    {
        hpx::util::yield_while([]() {
            std::unique_lock<detail::mutex_type> lk(
                detail::get_vector_mtx(), std::try_to_lock);
            if (!lk.owns_lock())
            {
                return true;
            }
            return (detail::get_mpi_info().active_futures_size_ > 0);
        });
    }
// -----------------------------------------------------------------
// This is not completely safe as it will return when the request vector is
// empty, but cannot guarantee that other communications are not about
// to be launched in outstanding continuations etc.
This is not completely safe as it will return when the request vector is
empty, but cannot guarantee that other communications are not about
to be launched in outstanding continuations etc.
This is not completely safe as it will return when the request vector is empty but cannot guarantee that other communications are not about to be launched in outstanding continuations etc .
inline void wait()
    {
        hpx::util::yield_while([]() {
            std::unique_lock<detail::mutex_type> lk(
                detail::get_vector_mtx(), std::try_to_lock);
            if (!lk.owns_lock())
            {
                return true;
            }
            return (detail::get_mpi_info().active_futures_size_ > 0);
        });
    }
inline void wait ( ) { hpx :: util :: yield_while ( [ ] ( ) { std :: unique_lock < detail :: mutex_type > lk ( detail :: get_vector_mtx ( ) , std :: try_to_lock ) ; if ( ! lk . owns_lock ( ) ) { return true ; } return ( detail :: get_mpi_info ( ) . active_futures_size_ > 0 ) ; } ) ; }
This is not completely safe as it will return when the request vector is
empty, but cannot guarantee that other communications are not about
to be launched in outstanding continuations etc.
This is not completely safe as it will return when the request vector is empty but cannot guarantee that other communications are not about to be launched in outstanding continuations etc .