Itoyori  v0.0.1
ityr::common::global_lock Class Reference

#include <global_lock.hpp>

Public Member Functions

 global_lock (int n_locks=1)
 
bool trylock (topology::rank_t target_rank, int idx=0) const
 
void lock (topology::rank_t target_rank, int idx=0) const
 
void priolock (topology::rank_t target_rank, int idx=0) const
 
void unlock (topology::rank_t target_rank, int idx=0) const
 
bool is_locked (topology::rank_t target_rank, int idx=0) const
 

Constructor & Destructor Documentation

◆ global_lock()

ityr::common::global_lock::global_lock ( int  n_locks = 1)
inline

Member Function Documentation

◆ is_locked()

bool ityr::common::global_lock::is_locked ( topology::rank_t  target_rank,
int  idx = 0 
) const
inline

◆ lock()

void ityr::common::global_lock::lock ( topology::rank_t  target_rank,
int  idx = 0 
) const
inline

◆ priolock()

void ityr::common::global_lock::priolock ( topology::rank_t  target_rank,
int  idx = 0 
) const
inline

◆ trylock()

bool ityr::common::global_lock::trylock ( topology::rank_t  target_rank,
int  idx = 0 
) const
inline

◆ unlock()

void ityr::common::global_lock::unlock ( topology::rank_t  target_rank,
int  idx = 0 
) const
inline

The documentation for this class was generated from the following file: