11 std::string mutex_name;
19 *mutex =
new mutex_type( boost::interprocess::open_or_create, mutex_name.c_str() );
21 catch (
const boost::interprocess::interprocess_exception& ) {
22 rodsLog(
LOG_ERROR,
"boost::interprocess::named_mutex threw a boost::interprocess::interprocess_exception." );
28 catch (
const boost::interprocess::interprocess_exception& ) {
29 rodsLog(
LOG_ERROR,
"lock threw a boost::interprocess::interprocess_exception." );
36 std::string mutex_name;
44 *mutex =
new mutex_type( boost::interprocess::open_or_create, mutex_name.c_str() );
46 catch (
const boost::interprocess::interprocess_exception& ) {
47 rodsLog(
LOG_ERROR,
"boost::interprocess::named_mutex threw a boost::interprocess::interprocess_exception." );
51 ( *mutex )->lock_sharable();
53 catch (
const boost::interprocess::interprocess_exception& ) {
54 rodsLog(
LOG_ERROR,
"lock threw a boost::interprocess::interprocess_exception." );
64 catch (
const boost::interprocess::interprocess_exception& ) {
65 rodsLog(
LOG_ERROR,
"unlock threw a boost::interprocess::interprocess_exception." );
72 ( *mutex )->unlock_sharable();
74 catch (
const boost::interprocess::interprocess_exception& ) {
75 rodsLog(
LOG_ERROR,
"unlock threw a boost::interprocess::interprocess_exception." );
83 std::string mutex_name;
95 mutex_name =
"irods_re_cache_mutex_";
96 mutex_name += _inst_name;
98 mutex_name += mutex_name_salt;
100 rodsLog(
LOG_ERROR,
"getMutexName: failed to retrieve re cache salt from server_properties\n%s",
e.what() );