This commit is contained in:
bthomee
2026-01-22 05:22:40 -08:00
parent 7ae3ceb2e9
commit a81ee70000
51 changed files with 5934 additions and 5961 deletions

View File

@@ -175,31 +175,26 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> BEAST_EXPECT(stateB == 2);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> }</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="preprocessor">#if BOOST_OS_LINUX</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// On Linux, verify that thread names longer than 15 characters</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="comment">// are truncated to 15 characters (the 16th character is reserved for</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// the null terminator).</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// On Linux, verify that thread names within the 15 character limit</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="comment">// are set correctly (the 16th character is reserved for the null</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// terminator).</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> {</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> testName(</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="stringliteral">&quot;123456789012345&quot;</span>,</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="stringliteral">&quot;123456789012345&quot;</span>); <span class="comment">// 15 chars, no truncation</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> testName(</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="stringliteral">&quot;1234567890123456&quot;</span>, <span class="stringliteral">&quot;123456789012345&quot;</span>); <span class="comment">// 16 chars, truncated</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> testName(</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="stringliteral">&quot;ThisIsAVeryLongThreadNameExceedingLimit&quot;</span>,</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="stringliteral">&quot;ThisIsAVeryLong&quot;</span>); <span class="comment">// 39 chars, truncated</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> testName(<span class="stringliteral">&quot;&quot;</span>, <span class="stringliteral">&quot;&quot;</span>); <span class="comment">// empty name</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> testName(<span class="stringliteral">&quot;short&quot;</span>, <span class="stringliteral">&quot;short&quot;</span>); <span class="comment">// short name, no truncation</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> }</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> }</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="stringliteral">&quot;123456789012345&quot;</span>); <span class="comment">// 15 chars, maximum allowed</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> testName(<span class="stringliteral">&quot;&quot;</span>, <span class="stringliteral">&quot;&quot;</span>); <span class="comment">// empty name</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> testName(<span class="stringliteral">&quot;short&quot;</span>, <span class="stringliteral">&quot;short&quot;</span>); <span class="comment">// short name</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> }</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> }</div>
</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span>};</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span>};</div>
</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="namespacexrpl_1_1test.html#acd840368a5d17f175b52c6863b73f663"> 110</a></span>BEAST_DEFINE_TESTSUITE(CurrentThreadName, <a class="code hl_namespace" href="namespacebeast.html">beast</a>, <a class="code hl_namespace" href="namespacebeast.html">beast</a>);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span>} <span class="comment">// namespace xrpl</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="namespacexrpl_1_1test.html#acd840368a5d17f175b52c6863b73f663"> 105</a></span>BEAST_DEFINE_TESTSUITE(CurrentThreadName, <a class="code hl_namespace" href="namespacebeast.html">beast</a>, <a class="code hl_namespace" href="namespacebeast.html">beast</a>);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span>} <span class="comment">// namespace xrpl</span></div>
<div class="ttc" id="aatomic_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00051">suite.h:52</a></div></div>
@@ -208,8 +203,8 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="aclassxrpl_1_1test_1_1CurrentThreadName__test_html_afd2fc22bda2ae027dfad9159d6e6524a"><div class="ttname"><a href="classxrpl_1_1test_1_1CurrentThreadName__test.html#afd2fc22bda2ae027dfad9159d6e6524a">xrpl::test::CurrentThreadName_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdoc">Runs the suite.</div><div class="ttdef"><b>Definition</b> <a href="beast__CurrentThreadName__test_8cpp_source.html#l00064">beast_CurrentThreadName_test.cpp:64</a></div></div>
<div class="ttc" id="ajoin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/thread/join.html">std::thread::join</a></div><div class="ttdeci">T join(T... args)</div></div>
<div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00653">base_uint.h:653</a></div></div>
<div class="ttc" id="anamespacebeast_html_ab3bd70e6eb43bbd99b5fe518efce8c7e"><div class="ttname"><a href="namespacebeast.html#ab3bd70e6eb43bbd99b5fe518efce8c7e">beast::setCurrentThreadName</a></div><div class="ttdeci">void setCurrentThreadName(std::string_view newThreadName)</div><div class="ttdoc">Changes the name of the caller thread.</div><div class="ttdef"><b>Definition</b> <a href="CurrentThreadName_8cpp_source.html#l00118">CurrentThreadName.cpp:118</a></div></div>
<div class="ttc" id="anamespacebeast_html_afa60f82c45aadff5ed4da508c797e3a9"><div class="ttname"><a href="namespacebeast.html#afa60f82c45aadff5ed4da508c797e3a9">beast::getCurrentThreadName</a></div><div class="ttdeci">std::string getCurrentThreadName()</div><div class="ttdoc">Returns the name of the caller thread.</div><div class="ttdef"><b>Definition</b> <a href="CurrentThreadName_8cpp_source.html#l00112">CurrentThreadName.cpp:112</a></div></div>
<div class="ttc" id="anamespacebeast_html_ab3bd70e6eb43bbd99b5fe518efce8c7e"><div class="ttname"><a href="namespacebeast.html#ab3bd70e6eb43bbd99b5fe518efce8c7e">beast::setCurrentThreadName</a></div><div class="ttdeci">void setCurrentThreadName(std::string_view newThreadName)</div><div class="ttdoc">Changes the name of the caller thread.</div><div class="ttdef"><b>Definition</b> <a href="CurrentThreadName_8cpp_source.html#l00124">CurrentThreadName.cpp:124</a></div></div>
<div class="ttc" id="anamespacebeast_html_afa60f82c45aadff5ed4da508c797e3a9"><div class="ttname"><a href="namespacebeast.html#afa60f82c45aadff5ed4da508c797e3a9">beast::getCurrentThreadName</a></div><div class="ttdeci">std::string getCurrentThreadName()</div><div class="ttdoc">Returns the name of the caller thread.</div><div class="ttdef"><b>Definition</b> <a href="CurrentThreadName_8cpp_source.html#l00118">CurrentThreadName.cpp:118</a></div></div>
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
<div class="ttc" id="athread_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/thread.html">thread</a></div></div>
</div><!-- fragment --></div><!-- contents -->