This commit is contained in:
nbougalis
2020-12-21 13:57:13 +00:00
parent 00ae94e785
commit c55b377da7
2394 changed files with 44923 additions and 47046 deletions

View File

@@ -99,7 +99,7 @@ $(function() {
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; , mWriteLoad(0)</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; , mWritePending(false)</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; <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb">mWriteSet</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/reserve.html">reserve</a>(<a class="code" href="namespaceripple_1_1NodeStore.html#a462140731267cdb1df0c7759a9a31512a3e7cbb590a2149da2328925f4ac5978a">batchWritePreallocationSize</a>);</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb">mWriteSet</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/reserve.html">reserve</a>(<a class="code" href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8a3e7cbb590a2149da2328925f4ac5978a">batchWritePreallocationSize</a>);</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;}</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#af79bad700133763e550a4750fcae40d7"> 34</a></span>&#160;<a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#af79bad700133763e550a4750fcae40d7">BatchWriter::~BatchWriter</a>()</div>
@@ -114,7 +114,7 @@ $(function() {
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="comment">// If the batch has reached its limit, we wait</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="comment">// until the batch writer is finished</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">while</span> (<a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb">mWriteSet</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() &gt;= <a class="code" href="namespaceripple_1_1NodeStore.html#a462140731267cdb1df0c7759a9a31512a03b8818e1ee729cf3a62bf6697aff257">batchWriteLimitSize</a>)</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">while</span> (<a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb">mWriteSet</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() &gt;= <a class="code" href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8a03b8818e1ee729cf3a62bf6697aff257">batchWriteLimitSize</a>)</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#ae99b6e34ec47a86bcdc8de5a5a49eff4">mWriteCondition</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/wait.html">wait</a>(sl);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb">mWriteSet</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">push_back</a>(<span class="keywordtype">object</span>);</div>
@@ -148,7 +148,7 @@ $(function() {
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; {</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;std::shared_ptr&lt;NodeObject&gt;</a>&gt; <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>.reserve(<a class="code" href="namespaceripple_1_1NodeStore.html#a462140731267cdb1df0c7759a9a31512a3e7cbb590a2149da2328925f4ac5978a">batchWritePreallocationSize</a>);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>.reserve(<a class="code" href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8a3e7cbb590a2149da2328925f4ac5978a">batchWritePreallocationSize</a>);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; {</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> sl(<a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a8446bde66ae915ce1e8a23c1d9e03932">mWriteMutex</a>);</div>
@@ -201,19 +201,19 @@ $(function() {
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_a462140731267cdb1df0c7759a9a31512a03b8818e1ee729cf3a62bf6697aff257"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#a462140731267cdb1df0c7759a9a31512a03b8818e1ee729cf3a62bf6697aff257">ripple::NodeStore::batchWriteLimitSize</a></div><div class="ttdeci">@ batchWriteLimitSize</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00040">nodestore/Types.h:40</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a3fe23bec6b7c7fd4a4ca7c954241930c"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a3fe23bec6b7c7fd4a4ca7c954241930c">ripple::NodeStore::BatchWriter::waitForWriting</a></div><div class="ttdeci">void waitForWriting()</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00113">BatchWriter.cpp:113</a></div></div>
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_ab026118fd22b5e7db14b5dea6938aaa8a3e7cbb590a2149da2328925f4ac5978a"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8a3e7cbb590a2149da2328925f4ac5978a">ripple::NodeStore::batchWritePreallocationSize</a></div><div class="ttdeci">@ batchWritePreallocationSize</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00034">nodestore/Types.h:34</a></div></div>
<div class="ttc" id="apush_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">std::vector::push_back</a></div><div class="ttdeci">T push_back(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html_af3734617d65f9903e3b33d3ee6de8102"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html#af3734617d65f9903e3b33d3ee6de8102">ripple::NodeStore::Scheduler::scheduleTask</a></div><div class="ttdeci">virtual void scheduleTask(Task &amp;task)=0</div><div class="ttdoc">Schedules a task.</div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriter_1_1Callback_html_a44ada568a17a0b6f3256005476e68638"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#a44ada568a17a0b6f3256005476e68638">ripple::NodeStore::BatchWriter::Callback::writeBatch</a></div><div class="ttdeci">virtual void writeBatch(Batch const &amp;batch)=0</div></div>
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_ab026118fd22b5e7db14b5dea6938aaa8a03b8818e1ee729cf3a62bf6697aff257"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8a03b8818e1ee729cf3a62bf6697aff257">ripple::NodeStore::batchWriteLimitSize</a></div><div class="ttdeci">@ batchWriteLimitSize</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00040">nodestore/Types.h:40</a></div></div>
<div class="ttc" id="aunique_lock_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespaceripple_html_a53f80df10254751781250aa20704e98f"><div class="ttname"><a href="namespaceripple.html#a53f80df10254751781250aa20704e98f">ripple::set</a></div><div class="ttdeci">bool set(T &amp;target, std::string const &amp;name, Section const &amp;section)</div><div class="ttdoc">Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...</div><div class="ttdef"><b>Definition:</b> <a href="BasicConfig_8h_source.html#l00276">BasicConfig.h:276</a></div></div>
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_a462140731267cdb1df0c7759a9a31512a3e7cbb590a2149da2328925f4ac5978a"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#a462140731267cdb1df0c7759a9a31512a3e7cbb590a2149da2328925f4ac5978a">ripple::NodeStore::batchWritePreallocationSize</a></div><div class="ttdeci">@ batchWritePreallocationSize</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00034">nodestore/Types.h:34</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriter_1_1Callback_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">ripple::NodeStore::BatchWriter::Callback</a></div><div class="ttdoc">This callback does the actual writing.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00044">BatchWriter.h:44</a></div></div>
<div class="ttc" id="await_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/wait.html">std::condition_variable_any::wait</a></div><div class="ttdeci">T wait(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html">ripple::NodeStore::Scheduler</a></div><div class="ttdoc">Scheduling for asynchronous backend activity.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00061">ripple/nodestore/Scheduler.h:61</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html">ripple::NodeStore::Scheduler</a></div><div class="ttdoc">Scheduling for asynchronous backend activity.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00060">ripple/nodestore/Scheduler.h:60</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_af79bad700133763e550a4750fcae40d7"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#af79bad700133763e550a4750fcae40d7">ripple::NodeStore::BatchWriter::~BatchWriter</a></div><div class="ttdeci">~BatchWriter()</div><div class="ttdoc">Destroy a batch writer.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00034">BatchWriter.cpp:34</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html">ripple::NodeStore::BatchWriteReport</a></div><div class="ttdoc">Contains information about a batch write operation.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00045">ripple/nodestore/Scheduler.h:45</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html">ripple::NodeStore::BatchWriteReport</a></div><div class="ttdoc">Contains information about a batch write operation.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00044">ripple/nodestore/Scheduler.h:44</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a8446bde66ae915ce1e8a23c1d9e03932"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a8446bde66ae915ce1e8a23c1d9e03932">ripple::NodeStore::BatchWriter::mWriteMutex</a></div><div class="ttdeci">LockType mWriteMutex</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00091">BatchWriter.h:91</a></div></div>
<div class="ttc" id="aswap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/swap.html">std::vector::swap</a></div><div class="ttdeci">T swap(T... args)</div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
@@ -224,9 +224,9 @@ $(function() {
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a90833868dbf5ca5fcb5840d8ead21f3a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a90833868dbf5ca5fcb5840d8ead21f3a">ripple::NodeStore::BatchWriter::mWriteLoad</a></div><div class="ttdeci">int mWriteLoad</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00093">BatchWriter.h:93</a></div></div>
<div class="ttc" id="aempty_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/empty.html">std::vector::empty</a></div><div class="ttdeci">T empty(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a3e9fcc020d96a6a061bc6d00cb8c4eb4"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a3e9fcc020d96a6a061bc6d00cb8c4eb4">ripple::NodeStore::BatchWriter::m_callback</a></div><div class="ttdeci">Callback &amp; m_callback</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00089">BatchWriter.h:89</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a357c5cc140aa8da903855175e07b4d0b"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">ripple::NodeStore::BatchWriteReport::writeCount</a></div><div class="ttdeci">int writeCount</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00050">ripple/nodestore/Scheduler.h:50</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a357c5cc140aa8da903855175e07b4d0b"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">ripple::NodeStore::BatchWriteReport::writeCount</a></div><div class="ttdeci">int writeCount</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00049">ripple/nodestore/Scheduler.h:49</a></div></div>
<div class="ttc" id="amax_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a></div><div class="ttdeci">T max(T... args)</div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a183bf74eb142fef4d3dd5d18905d9a22"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">ripple::NodeStore::BatchWriteReport::elapsed</a></div><div class="ttdeci">std::chrono::milliseconds elapsed</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00049">ripple/nodestore/Scheduler.h:49</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a183bf74eb142fef4d3dd5d18905d9a22"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">ripple::NodeStore::BatchWriteReport::elapsed</a></div><div class="ttdeci">std::chrono::milliseconds elapsed</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00048">ripple/nodestore/Scheduler.h:48</a></div></div>
<div class="ttc" id="anotify_all_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/notify_all.html">std::condition_variable_any::notify_all</a></div><div class="ttdeci">T notify_all(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html_a0adffe6c4e42f062bd47864f4e615a39"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html#a0adffe6c4e42f062bd47864f4e615a39">ripple::NodeStore::Scheduler::onBatchWrite</a></div><div class="ttdeci">virtual void onBatchWrite(BatchWriteReport const &amp;report)=0</div><div class="ttdoc">Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a45c6abdc7dcdc3cdb4a8c1e3bfac8cd8"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a45c6abdc7dcdc3cdb4a8c1e3bfac8cd8">ripple::NodeStore::BatchWriter::m_scheduler</a></div><div class="ttdeci">Scheduler &amp; m_scheduler</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00090">BatchWriter.h:90</a></div></div>