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
Go to the documentation of this file.
1 /* For copyright information please refer to files in the COPYRIGHT directory
2  */
3 
4 #ifndef RULEENGINELOCKS_HPP
5 #define RULEENGINELOCKS_HPP
6 #include <boost/interprocess/sync/named_sharable_mutex.hpp>
7 #include <boost/interprocess/creation_tags.hpp>
8 #include <boost/interprocess/exceptions.hpp>
9 #include "irods_error.hpp"
10 
11 typedef boost::interprocess::named_sharable_mutex mutex_type;
12 void unlockReadMutex( const char*, mutex_type **mutex );
13 int lockReadMutex( const char*, mutex_type **mutex );
14 void unlockWriteMutex( const char*, mutex_type **mutex );
15 int lockWriteMutex( const char*, mutex_type **mutex );
16 void resetMutex( const char* );
17 irods::error getMutexName( const char*, std::string &mutex_name );
18 
19 #endif
unlockReadMutex
void unlockReadMutex(const char *, mutex_type **mutex)
Definition: locks.cpp:70
unlockWriteMutex
void unlockWriteMutex(const char *, mutex_type **mutex)
Definition: locks.cpp:60
resetMutex
void resetMutex(const char *)
Definition: locks.cpp:82
lockWriteMutex
int lockWriteMutex(const char *, mutex_type **mutex)
Definition: locks.cpp:10
mutex_type
boost::interprocess::named_sharable_mutex mutex_type
Definition: locks.hpp:11
irods::error
Definition: irods_error.hpp:23
irods_error.hpp
getMutexName
irods::error getMutexName(const char *, std::string &mutex_name)
Definition: locks.cpp:92
lockReadMutex
int lockReadMutex(const char *, mutex_type **mutex)
Definition: locks.cpp:35