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.
![]() ![]() |
#include <boost/interprocess/sync/named_sharable_mutex.hpp>
#include <boost/interprocess/creation_tags.hpp>
#include <boost/interprocess/exceptions.hpp>
#include "irods_error.hpp"
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 boost::interprocess::named_sharable_mutex mutex_type |
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().
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().
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().
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().
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().
void unlockWriteMutex | ( | const char * | , |
mutex_type ** | mutex | ||
) |
Definition at line 60 of file locks.cpp.
References LOG_ERROR, and rodsLog().
Referenced by updateCache().