Skip to content

Commit

Permalink
Deploying to gh-pages from @ fbd8aa9 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolotonci committed Feb 13, 2024
1 parent 63cc562 commit 27da6f3
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 52 deletions.
73 changes: 36 additions & 37 deletions mtcl_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,44 +74,43 @@
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="keyword">namespace </span>MTCL {</div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#if defined(ENABLE_MPI)</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPI_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_MPI</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPI_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#if defined(ENABLE_MPIP2P) &amp;&amp; !defined(NO_MTCL_MULTITHREADED)</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPIP2P_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_MPIP2P</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPIP2P_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#if defined(ENABLE_UCX)</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCX_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCC_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_UCX</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCX_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCC_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#ifdef ENABLE_SHM</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_SHM</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#ifdef ENABLE_MQTT</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_MQTT</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#if defined(ENABLE_MPI)</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPI_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_MPI</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPI_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#if defined(ENABLE_MPIP2P) &amp;&amp; !defined(NO_MTCL_MULTITHREADED)</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPIP2P_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_MPIP2P</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> MPIP2P_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#if defined(ENABLE_UCX)</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCX_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCC_ENABLED = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_UCX</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCX_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">const</span> <span class="keywordtype">bool</span> UCC_ENABLED = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#ifdef ENABLE_SHM</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_SHM</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#ifdef ENABLE_MQTT</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#define MTCL_ENABLE_MQTT</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#include &quot;config.hpp&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#include &quot;utils.hpp&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#include &quot;manager.hpp&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &quot;config.hpp&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#include &quot;utils.hpp&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#include &quot;manager.hpp&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Expand Down
12 changes: 6 additions & 6 deletions shm__buffer_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; pthread_spin_lock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">if</span> (shmp-&gt;guard==0) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; pthread_spin_unlock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; cpu_relax();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; mtcl_cpu_relax();</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; } <span class="keywordflow">while</span>(1);</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; shmp-&gt;data.size=sz;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; shmp-&gt;guard=(<span class="keywordtype">void</span>*)data;</div>
Expand All @@ -215,7 +215,7 @@
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; pthread_spin_lock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">if</span> (shmp-&gt;guard==0) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; pthread_spin_unlock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; cpu_relax();</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; mtcl_cpu_relax();</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; } <span class="keywordflow">while</span>(1);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; shmp-&gt;data.size=sz;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; s = std::min(size, (<span class="keywordtype">size_t</span>)SHM_SMALL_MSG_SIZE);</div>
Expand All @@ -241,7 +241,7 @@
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; }</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; pthread_spin_unlock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; cpu_relax();</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; mtcl_cpu_relax();</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; } <span class="keywordflow">while</span>(<span class="keyword">true</span>); </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keywordtype">size_t</span> size = shmp-&gt;data.size;</div>
Expand All @@ -262,7 +262,7 @@
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; pthread_spin_lock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordflow">if</span> (shmp-&gt;guard!=0) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; pthread_spin_unlock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; cpu_relax();</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; mtcl_cpu_relax();</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; } <span class="keywordflow">while</span>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; }</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; posix_madvise(data, sz, POSIX_MADV_NORMAL);</div>
Expand All @@ -282,7 +282,7 @@
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; }</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; pthread_spin_unlock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; cpu_relax();</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; mtcl_cpu_relax();</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; } <span class="keywordflow">while</span>(<span class="keyword">true</span>); </div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <span class="keywordtype">size_t</span> size = shmp-&gt;data.size;</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; pthread_spin_unlock(&amp;shmp-&gt;spinlock);</div>
Expand Down Expand Up @@ -321,7 +321,7 @@
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; pthread_spin_lock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="keywordflow">if</span> (shmp-&gt;guard!=0) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; pthread_spin_unlock(&amp;shmp-&gt;spinlock);</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; cpu_relax();</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; mtcl_cpu_relax();</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; } <span class="keywordflow">while</span>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; }</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; posix_madvise(data, sz, POSIX_MADV_NORMAL);</div>
Expand Down
Loading

0 comments on commit 27da6f3

Please sign in to comment.