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.cpp File Reference
#include "locks.hpp"
#include "rodsConnect.h"
#include "irods_log.hpp"
#include "irods_server_properties.hpp"
Include dependency graph for locks.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ getMutexName()

irods::error getMutexName ( const char *  _inst_name,
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 *  _inst_name,
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 *  _inst_name,
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 *  _inst_name)

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 *  _inst_name,
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 *  _inst_name,
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: