Skip to content

Commit

Permalink
10.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Dec 31, 2023
1 parent 1e56dff commit 8d8d827
Show file tree
Hide file tree
Showing 36 changed files with 130 additions and 120 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v.10.1.0 (31 December 2023)
- Greatly improved circuit performace with component auto-ordering.
- Added Circuit::Optimize() to manually order components pre-tick.

v.10.0.2 (29 December 2023)
- Optimized Tick() by avoiding unnecessary wire copying.
- Declared all non-abstract classes "final".
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)

# Set version information.
set(DSPATCH_MAJOR 10)
set(DSPATCH_MINOR 0)
set(DSPATCH_MICRO 2)
set(DSPATCH_MINOR 1)
set(DSPATCH_MICRO 0)

if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W4")
Expand Down
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PROJECT_NAME = DSPatch
# This could be handy for archiving the generated documentation or
# if some version control system is used.

PROJECT_NUMBER = v.10.0.2
PROJECT_NUMBER = v.10.1.0

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_auto_tick_thread_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="heartbeat.png"/></td>
<td id="projectalign">
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.0.2</span>
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.1.0</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_circuit_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="heartbeat.png"/></td>
<td id="projectalign">
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.0.2</span>
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.1.0</span>
</div>
</td>
</tr>
Expand Down
44 changes: 20 additions & 24 deletions docs/html/_circuit_thread_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="heartbeat.png"/></td>
<td id="projectalign">
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.0.2</span>
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.1.0</span>
</div>
</td>
</tr>
Expand Down Expand Up @@ -262,29 +262,25 @@
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> {</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> component-&gt;Tick( _threadNo );</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> }</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keywordflow">for</span> ( <span class="keyword">auto</span> component : *_components )</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> {</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> component-&gt;Reset( _threadNo );</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> }</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> }</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> }</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> }</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> _stopped = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> }</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> std::thread _thread;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> std::vector&lt;DSPatch::Component*&gt;* _components = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordtype">int</span> _threadNo = 0;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordtype">bool</span> _stop = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordtype">bool</span> _stopped = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="keywordtype">bool</span> _gotSync = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> std::mutex _syncMutex;</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> std::condition_variable _resumeCondt, _syncCondt;</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span>};</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> </div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span>} <span class="comment">// namespace internal</span></div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span>} <span class="comment">// namespace DSPatch</span></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> }</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> }</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> }</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> </div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> _stopped = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> }</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> std::thread _thread;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> std::vector&lt;DSPatch::Component*&gt;* _components = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordtype">int</span> _threadNo = 0;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keywordtype">bool</span> _stop = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordtype">bool</span> _stopped = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <span class="keywordtype">bool</span> _gotSync = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> std::mutex _syncMutex;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> std::condition_variable _resumeCondt, _syncCondt;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span>};</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span>} <span class="comment">// namespace internal</span></div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span>} <span class="comment">// namespace DSPatch</span></div>
<div class="ttc" id="aclass_d_s_patch_1_1internal_1_1_circuit_thread_html"><div class="ttname"><a href="class_d_s_patch_1_1internal_1_1_circuit_thread.html">DSPatch::internal::CircuitThread</a></div><div class="ttdoc">Thread class for asynchronously ticking circuit components.</div><div class="ttdef"><b>Definition</b> <a href="_circuit_thread_8h_source.html#l00066">CircuitThread.h:67</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_common_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="heartbeat.png"/></td>
<td id="projectalign">
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.0.2</span>
<div id="projectname">DSPatch<span id="projectnumber">&#160;v.10.1.0</span>
</div>
</td>
</tr>
Expand Down
Loading

0 comments on commit 8d8d827

Please sign in to comment.