<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libzypp: zypp/base/InterProcessMutex.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libzypp  <span id="projectnumber">17.9.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('InterProcessMutex_8h_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">InterProcessMutex.h</div> </div> </div><!--header--> <div class="contents"> <a href="InterProcessMutex_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#ifndef ZYPP_BASE_INTER_PROCESS_MUTEX_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#define ZYPP_BASE_INTER_PROCESS_MUTEX_H</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="Fd_8h.html">zypp/base/Fd.h</a>"</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="Exception_8h.html">zypp/base/Exception.h</a>"</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="NonCopyable_8h.html">zypp/base/NonCopyable.h</a>"</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="Pathname_8h.html">zypp/Pathname.h</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> {</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span>base</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1ZYppLockedException.html"> 16</a></span> <span class="keyword">class </span><a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html">ZYppLockedException</a> : <span class="keyword">public</span> <a class="code" href="classzypp_1_1Exception.html">Exception</a></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a372f0426c131f919da717277708127ae">ZYppLockedException</a>( <span class="keyword">const</span> std::string & msg_r,</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keyword">const</span> std::string &<a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a0db7bda9ba4a5e7d3d5a178df63dea50">name</a>,</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  pid_t <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a585aff9a4d5752e1fef34c7cc921aa06">locker_pid</a> );</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">virtual</span> <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a65e098b1804c3ed711cd9aa64cab7793">~ZYppLockedException</a>() <span class="keywordflow">throw</span>();</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1ZYppLockedException.html#a585aff9a4d5752e1fef34c7cc921aa06"> 23</a></span>  pid_t <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a585aff9a4d5752e1fef34c7cc921aa06">locker_pid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a4bce9bd31d41111cc62b0ecb54a06e73">_locker_pid</a>; }</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1ZYppLockedException.html#a0db7bda9ba4a5e7d3d5a178df63dea50"> 24</a></span>  std::string <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a0db7bda9ba4a5e7d3d5a178df63dea50">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a453ac014748dcf5c27977769ad8a8b48">_name</a>; }</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1ZYppLockedException.html#a4bce9bd31d41111cc62b0ecb54a06e73"> 26</a></span>  pid_t <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a4bce9bd31d41111cc62b0ecb54a06e73">_locker_pid</a>;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1ZYppLockedException.html#a453ac014748dcf5c27977769ad8a8b48"> 27</a></span>  std::string <a class="code" href="classzypp_1_1base_1_1ZYppLockedException.html#a453ac014748dcf5c27977769ad8a8b48">_name</a>;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> };</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex.html"> 43</a></span> <span class="keyword">class </span><a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html">InterProcessMutex</a> : <span class="keyword">private</span> <a class="code" href="namespacezypp_1_1base.html#a3a6dcdb2e24ab74d95eb8a117f429af1">base::NonCopyable</a></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909"> 50</a></span>  <span class="keyword">enum</span> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909">ConsumerType</a></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909a070f400ef460e5e01663aba0b982e64c"> 52</a></span>  <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909a070f400ef460e5e01663aba0b982e64c">Reader</a>,</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909a4ca83e486b0cb7d049cf33b29ee866a3"> 53</a></span>  <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909a4ca83e486b0cb7d049cf33b29ee866a3">Writer</a></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  };</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html"> 59</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html">Options</a></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af1893b7bcffd7624d68db677e9c06e39">Options</a>( <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909">ConsumerType</a> ptype,</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> std::string &pname = <span class="stringliteral">"zypp"</span>,</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">int</span> ptimeout = -1 );</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#adfdfdfa9fcbe5d79d98fbc1972d3971e">setPath</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &<a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af1ac256968a3bb9245f920690c1e83df">base</a> );</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#ab74e778ad958810183ec2e4eb480c95f"> 87</a></span>  std::string <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#ab74e778ad958810183ec2e4eb480c95f">name</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af072ab2bbf878fd4cd44a7fa779a5c02"> 88</a></span>  <span class="keywordtype">int</span> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af072ab2bbf878fd4cd44a7fa779a5c02">timeout</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#ac794d6ed3c93aeea384e9b22cc995e19"> 89</a></span>  <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909">ConsumerType</a> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#ac794d6ed3c93aeea384e9b22cc995e19">type</a>;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af1ac256968a3bb9245f920690c1e83df"> 90</a></span>  <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af1ac256968a3bb9245f920690c1e83df">base</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  };</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#afa38a3d3f446048c01f077d70e9da7cb">InterProcessMutex</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html">Options</a> &poptions );</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a6417bc43a865775605cc1c64ae248a2a">~InterProcessMutex</a>();</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a25b7f1fcd5ce9a1c8c03039e99a30e63">isProcessRunning</a>(pid_t pid_r);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a16a22ffe99dba1598f56ac051aa0c1bf">lockFilePath</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex.html#aa109f392ed9985f129b2a266682065ae"> 120</a></span>  shared_ptr<Fd> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#aa109f392ed9985f129b2a266682065ae">_fd</a>;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classzypp_1_1base_1_1InterProcessMutex.html#a7111c6dbd70a898312400f7582649734"> 121</a></span>  <a class="code" href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html">Options</a> <a class="code" href="classzypp_1_1base_1_1InterProcessMutex.html#a7111c6dbd70a898312400f7582649734">_options</a>;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> };</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> } }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="ttc" id="Pathname_8h_html"><div class="ttname"><a href="Pathname_8h.html">Pathname.h</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_1_1Options_html_af072ab2bbf878fd4cd44a7fa779a5c02"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af072ab2bbf878fd4cd44a7fa779a5c02">zypp::base::InterProcessMutex::Options::timeout</a></div><div class="ttdeci">int timeout</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00088">InterProcessMutex.h:88</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_1_1Options_html_ac794d6ed3c93aeea384e9b22cc995e19"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#ac794d6ed3c93aeea384e9b22cc995e19">zypp::base::InterProcessMutex::Options::type</a></div><div class="ttdeci">ConsumerType type</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00089">InterProcessMutex.h:89</a></div></div> <div class="ttc" id="NonCopyable_8h_html"><div class="ttname"><a href="NonCopyable_8h.html">NonCopyable.h</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_a16a22ffe99dba1598f56ac051aa0c1bf"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#a16a22ffe99dba1598f56ac051aa0c1bf">zypp::base::InterProcessMutex::lockFilePath</a></div><div class="ttdeci">Pathname lockFilePath() const</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8cc_source.html#l00312">InterProcessMutex.cc:312</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_1_1Options_html"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html">zypp::base::InterProcessMutex::Options</a></div><div class="ttdoc">options to alter the mutex behavor</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00059">InterProcessMutex.h:59</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_1_1Options_html_af1893b7bcffd7624d68db677e9c06e39"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af1893b7bcffd7624d68db677e9c06e39">zypp::base::InterProcessMutex::Options::Options</a></div><div class="ttdeci">Options(ConsumerType ptype, const std::string &pname="zypp", int ptimeout=-1)</div><div class="ttdoc">Options for a mutex of type ptype with a given name and timeout.</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8cc_source.html#l00040">InterProcessMutex.cc:40</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1ZYppLockedException_html"><div class="ttname"><a href="classzypp_1_1base_1_1ZYppLockedException.html">zypp::base::ZYppLockedException</a></div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00016">InterProcessMutex.h:16</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_a6417bc43a865775605cc1c64ae248a2a"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#a6417bc43a865775605cc1c64ae248a2a">zypp::base::InterProcessMutex::~InterProcessMutex</a></div><div class="ttdeci">~InterProcessMutex()</div><div class="ttdoc">Destructor, gives up the lock on the named resource.</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8cc_source.html#l00284">InterProcessMutex.cc:284</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1ZYppLockedException_html_a4bce9bd31d41111cc62b0ecb54a06e73"><div class="ttname"><a href="classzypp_1_1base_1_1ZYppLockedException.html#a4bce9bd31d41111cc62b0ecb54a06e73">zypp::base::ZYppLockedException::_locker_pid</a></div><div class="ttdeci">pid_t _locker_pid</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00026">InterProcessMutex.h:26</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_a92b55e495c58a83a5a18acb914efd909a070f400ef460e5e01663aba0b982e64c"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909a070f400ef460e5e01663aba0b982e64c">zypp::base::InterProcessMutex::Reader</a></div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00052">InterProcessMutex.h:52</a></div></div> <div class="ttc" id="namespacezypp_1_1base_html_a3a6dcdb2e24ab74d95eb8a117f429af1"><div class="ttname"><a href="namespacezypp_1_1base.html#a3a6dcdb2e24ab74d95eb8a117f429af1">zypp::base::NonCopyable</a></div><div class="ttdeci">boost::noncopyable NonCopyable</div><div class="ttdoc">Ensure derived classes cannot be copied.</div><div class="ttdef"><b>Definition:</b> <a href="NonCopyable_8h_source.html#l00026">NonCopyable.h:26</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1ZYppLockedException_html_a0db7bda9ba4a5e7d3d5a178df63dea50"><div class="ttname"><a href="classzypp_1_1base_1_1ZYppLockedException.html#a0db7bda9ba4a5e7d3d5a178df63dea50">zypp::base::ZYppLockedException::name</a></div><div class="ttdeci">std::string name() const</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00024">InterProcessMutex.h:24</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html">zypp::base::InterProcessMutex</a></div><div class="ttdoc">Inter process scoped lock implementation.</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00043">InterProcessMutex.h:43</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1ZYppLockedException_html_a585aff9a4d5752e1fef34c7cc921aa06"><div class="ttname"><a href="classzypp_1_1base_1_1ZYppLockedException.html#a585aff9a4d5752e1fef34c7cc921aa06">zypp::base::ZYppLockedException::locker_pid</a></div><div class="ttdeci">pid_t locker_pid() const</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00023">InterProcessMutex.h:23</a></div></div> <div class="ttc" id="Fd_8h_html"><div class="ttname"><a href="Fd_8h.html">Fd.h</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_aa109f392ed9985f129b2a266682065ae"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#aa109f392ed9985f129b2a266682065ae">zypp::base::InterProcessMutex::_fd</a></div><div class="ttdeci">shared_ptr< Fd > _fd</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00120">InterProcessMutex.h:120</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1ZYppLockedException_html_a372f0426c131f919da717277708127ae"><div class="ttname"><a href="classzypp_1_1base_1_1ZYppLockedException.html#a372f0426c131f919da717277708127ae">zypp::base::ZYppLockedException::ZYppLockedException</a></div><div class="ttdeci">ZYppLockedException(const std::string &msg_r, const std::string &name, pid_t locker_pid)</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8cc_source.html#l00028">InterProcessMutex.cc:28</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_a25b7f1fcd5ce9a1c8c03039e99a30e63"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#a25b7f1fcd5ce9a1c8c03039e99a30e63">zypp::base::InterProcessMutex::isProcessRunning</a></div><div class="ttdeci">bool isProcessRunning(pid_t pid_r)</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8cc_source.html#l00318">InterProcessMutex.cc:318</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_a92b55e495c58a83a5a18acb914efd909"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909">zypp::base::InterProcessMutex::ConsumerType</a></div><div class="ttdeci">ConsumerType</div><div class="ttdoc">Processes can be of two types Reader or Writer.</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00050">InterProcessMutex.h:50</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_a7111c6dbd70a898312400f7582649734"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#a7111c6dbd70a898312400f7582649734">zypp::base::InterProcessMutex::_options</a></div><div class="ttdeci">Options _options</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00121">InterProcessMutex.h:121</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_1_1Options_html_adfdfdfa9fcbe5d79d98fbc1972d3971e"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#adfdfdfa9fcbe5d79d98fbc1972d3971e">zypp::base::InterProcessMutex::Options::setPath</a></div><div class="ttdeci">void setPath(const Pathname &base)</div><div class="ttdoc">set the path where the lockfile is created.</div></div> <div class="ttc" id="classzypp_1_1Exception_html"><div class="ttname"><a href="classzypp_1_1Exception.html">zypp::Exception</a></div><div class="ttdoc">Base class for Exception.</div><div class="ttdef"><b>Definition:</b> <a href="Exception_8h_source.html#l00145">Exception.h:145</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_a92b55e495c58a83a5a18acb914efd909a4ca83e486b0cb7d049cf33b29ee866a3"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#a92b55e495c58a83a5a18acb914efd909a4ca83e486b0cb7d049cf33b29ee866a3">zypp::base::InterProcessMutex::Writer</a></div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00053">InterProcessMutex.h:53</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1ZYppLockedException_html_a453ac014748dcf5c27977769ad8a8b48"><div class="ttname"><a href="classzypp_1_1base_1_1ZYppLockedException.html#a453ac014748dcf5c27977769ad8a8b48">zypp::base::ZYppLockedException::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00027">InterProcessMutex.h:27</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1ZYppLockedException_html_a65e098b1804c3ed711cd9aa64cab7793"><div class="ttname"><a href="classzypp_1_1base_1_1ZYppLockedException.html#a65e098b1804c3ed711cd9aa64cab7793">zypp::base::ZYppLockedException::~ZYppLockedException</a></div><div class="ttdeci">virtual ~ZYppLockedException()</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8cc_source.html#l00036">InterProcessMutex.cc:36</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_html_afa38a3d3f446048c01f077d70e9da7cb"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex.html#afa38a3d3f446048c01f077d70e9da7cb">zypp::base::InterProcessMutex::InterProcessMutex</a></div><div class="ttdeci">InterProcessMutex(const Options &poptions)</div><div class="ttdoc">Creates a mutex with a name and a timeout.</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8cc_source.html#l00055">InterProcessMutex.cc:55</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_1_1Options_html_ab74e778ad958810183ec2e4eb480c95f"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#ab74e778ad958810183ec2e4eb480c95f">zypp::base::InterProcessMutex::Options::name</a></div><div class="ttdeci">std::string name</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00087">InterProcessMutex.h:87</a></div></div> <div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html">zypp::filesystem::Pathname</a></div><div class="ttdoc">Pathname.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00043">Pathname.h:43</a></div></div> <div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div> <div class="ttc" id="classzypp_1_1base_1_1InterProcessMutex_1_1Options_html_af1ac256968a3bb9245f920690c1e83df"><div class="ttname"><a href="classzypp_1_1base_1_1InterProcessMutex_1_1Options.html#af1ac256968a3bb9245f920690c1e83df">zypp::base::InterProcessMutex::Options::base</a></div><div class="ttdeci">Pathname base</div><div class="ttdef"><b>Definition:</b> <a href="InterProcessMutex_8h_source.html#l00090">InterProcessMutex.h:90</a></div></div> <div class="ttc" id="Exception_8h_html"><div class="ttname"><a href="Exception_8h.html">Exception.h</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="dir_76651d3a0256a4372f696a008d71ee69.html">base</a></li><li class="navelem"><a class="el" href="InterProcessMutex_8h.html">InterProcessMutex.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>