Loading...
Searching...
No Matches
lock.h File Reference
#include "visibility.h"
#include "wait.h"
#include "atomic.h"

Classes

struct  PLMD::thread_mpi::tMPI_Lock
 

Namespaces

namespace  PLMD
 Fast (possibly busy-wait-based) barrier type.
 
namespace  PLMD::thread_mpi
 

Typedefs

typedef struct tMPI_Lock PLMD::thread_mpi::tMPI_Lock_t
 

Functions

TMPI_EXPORT void PLMD::thread_mpi::tMPI_Lock_init (tMPI_Lock_t *lock)
 Initialize lock.
 
TMPI_EXPORT int PLMD::thread_mpi::tMPI_Lock_islocked (tMPI_Lock_t *lock)
 Check the status of the lock without affecting its state.
 
TMPI_EXPORT void PLMD::thread_mpi::tMPI_Lock_lock (tMPI_Lock_t *lock)
 Perform yielding, busy-waiting locking.
 
TMPI_EXPORT int PLMD::thread_mpi::tMPI_Lock_trylock (tMPI_Lock_t *lock)
 Try to lock the lock but don't block if it is locked.
 
TMPI_EXPORT void PLMD::thread_mpi::tMPI_Lock_unlock (tMPI_Lock_t *lock)
 Unlock the lock.