irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

locks.hpp File Reference
#include <boost/interprocess/sync/named_sharable_mutex.hpp>
#include <boost/interprocess/creation_tags.hpp>
#include <boost/interprocess/exceptions.hpp>
#include "irods_error.hpp"
Include dependency graph for locks.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef boost::interprocess::named_sharable_mutex mutex_type
 

Functions

void unlockReadMutex (const char *, mutex_type **mutex)
 
int lockReadMutex (const char *, mutex_type **mutex)
 
void unlockWriteMutex (const char *, mutex_type **mutex)
 
int lockWriteMutex (const char *, mutex_type **mutex)
 
void resetMutex (const char *)
 
irods::error getMutexName (const char *, std::string &mutex_name)
 

Typedef Documentation

◆ mutex_type

typedef boost::interprocess::named_sharable_mutex mutex_type

Definition at line 11 of file locks.hpp.

Function Documentation

◆ getMutexName()

irods::error getMutexName ( const char *  ,
std::string &  mutex_name 
)

Definition at line 92 of file locks.cpp.

References irods::CFG_RE_CACHE_SALT_KW(), terminate_irods_processes::e, error, LOG_ERROR, rodsLog(), and SUCCESS.

Referenced by lockReadMutex(), lockWriteMutex(), and resetMutex().

Here is the call graph for this function:

◆ lockReadMutex()

int lockReadMutex ( const char *  ,
mutex_type **  mutex 
)

Definition at line 35 of file locks.cpp.

References getMutexName(), LOG_ERROR, irods::error::ok(), and rodsLog().

Referenced by loadRuleFromCacheOrFile(), and restoreCache().

Here is the call graph for this function:

◆ lockWriteMutex()

int lockWriteMutex ( const char *  ,
mutex_type **  mutex 
)

Definition at line 10 of file locks.cpp.

References getMutexName(), LOG_ERROR, irods::error::ok(), and rodsLog().

Referenced by updateCache().

Here is the call graph for this function:

◆ resetMutex()

void resetMutex ( const char *  )

Definition at line 82 of file locks.cpp.

References getMutexName(), LOG_ERROR, irods::error::ok(), irods::experimental::filesystem::client::remove(), and rodsLog().

Referenced by uninstantiate_shared_memory_for_plugin().

Here is the call graph for this function:

◆ unlockReadMutex()

void unlockReadMutex ( const char *  ,
mutex_type **  mutex 
)

Definition at line 70 of file locks.cpp.

References LOG_ERROR, and rodsLog().

Referenced by loadRuleFromCacheOrFile(), and restoreCache().

Here is the call graph for this function:

◆ unlockWriteMutex()

void unlockWriteMutex ( const char *  ,
mutex_type **  mutex 
)

Definition at line 60 of file locks.cpp.

References LOG_ERROR, and rodsLog().

Referenced by updateCache().

Here is the call graph for this function: