Skip to content

Commit 19af7fb

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 5734dc9 commit 19af7fb

File tree

4 files changed

+85
-503
lines changed

4 files changed

+85
-503
lines changed

reference/chrono/make24.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h2>例</h2>
239239
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">false</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">0h</a></span><span class="p">);</span>
240240

241241
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">);</span>
242-
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1lU</span><span class="n">zYFUlrxTkcVLYhdpfgHPJsTWeZggAA</span><span class="p">);</span>
242+
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">);</span>
243243
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">15h</a></span><span class="p">);</span>
244244
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">11h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">23h</a></span><span class="p">);</span>
245245
<span class="p">}</span>

reference/execution/execution/parallel_scheduler.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
<meta property="og:url" content="https://cpprefjp.github.io/reference/execution/execution/parallel_scheduler.html" />
2929
<meta property="og:site_name" content="cpprefjp - C++日本語リファレンス" />
3030
<meta property="og:type" content="article" />
31-
<meta property="og:description" content="`parallel_scheduler`は、実行制御ライブラリ上で並列処理を実現する並列Schedulerクラスである" />
31+
<meta property="og:description" content="`parallel_scheduler`は、実行制御ライブラリ上でタスクの並列実行を可能とする並列[Scheduler](scheduler.md)である" />
3232
<meta name="twitter:card" content="summary" />
3333
<meta name="twitter:title" content="parallel_scheduler - cpprefjp C++日本語リファレンス" />
3434
<meta name="twitter:url" content="https://cpprefjp.github.io/reference/execution/execution/parallel_scheduler.html" />
35-
<meta name="twitter:description" content="`parallel_scheduler`は、実行制御ライブラリ上で並列処理を実現する並列Schedulerクラスである" />
35+
<meta name="twitter:description" content="`parallel_scheduler`は、実行制御ライブラリ上でタスクの並列実行を可能とする並列[Scheduler](scheduler.md)である" />
3636

3737

3838
<link rel="alternate" type="application/atom+xml" title="Atom" href="https://cpprefjp.github.io/rss.xml" />
@@ -200,8 +200,8 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2025-08-27T16:34:45">
204-
2025年08月27日 16時34分45秒
203+
<span itemprop="datePublished" content="2025-08-28T11:28:56">
204+
2025年08月28日 11時28分56秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -231,13 +231,15 @@
231231
</code></pre></div>
232232
</p>
233233
<h2>概要</h2>
234-
<p><code>parallel_scheduler</code>は、実行制御ライブラリ上で並列処理を実現する並列Schedulerクラスである。</p>
235-
<p>次のSenderアルゴリズムに対してカスタマイズ実装を提供することで、インデクス空間の各要素に対する処理を並列実行する。</p>
234+
<p><code>parallel_scheduler</code>は、実行制御ライブラリ上でタスクの並列実行を可能とする並列<a href="scheduler.html">Scheduler</a>である。</p>
235+
<p><code>parallel_scheduler</code>はシステムグローバルなスレッドプール(実行リソース)に関連付けられ、<code><a href="schedule.html">schedule</a></code>操作により得られる<a href="sender.html">Sender</a>はスレッドプールに属する任意のスレッド(実行エージェント)上で実行される。</p>
236+
<p>下記のSenderアルゴリズムに対してカスタマイズ実装を提供することで、タスクの一括(bulk)実行をスレッドプールを利用したタスク並列(parallel)実行に変換する。</p>
236237
<ul>
237-
<li><code><a href="bulk.html">execution::bulk</a></code> : 既定動作では<code>bulk_chunked</code>へ変換</li>
238-
<li><code><a href="bulk_chunked.html">execution::bulk_chunked</a></code> : チャンク単位で並列実行</li>
239-
<li><code><a href="bulk_unchunked.html">execution::bulk_unchunked</a></code> : 要素単位で並列実行</li>
238+
<li><code><a href="bulk.html">execution::bulk</a></code> : <code>bulk_chunked</code>に変換してタスク並列実行</li>
239+
<li><code><a href="bulk_chunked.html">execution::bulk_chunked</a></code> : インデクス範囲をチャンク単位でタスク並列実行</li>
240+
<li><code><a href="bulk_unchunked.html">execution::bulk_unchunked</a></code> : インデクス範囲を要素単位でタスク並列実行</li>
240241
</ul>
242+
<p><code><a href="system_context_replaceability.html">execution::system_context_replaceability</a></code> 名前空間で定義されるインタフェースを介して、スレッドプール実装をユーザ定義の並列Schedulerバックエンドに置き換えることもできる。</p>
241243
<h2>クラス仕様</h2>
242244
<p><code>parallel_scheduler</code><code><a href="scheduler.html">scheduler</a></code>のモデルである。</p>
243245
<p>説明用の<code>sch</code><code>parallel_scheduler</code>型のオブジェクト、<code>sch</code><code>ptr</code>と関連付けられるとき<code>BACKEND-OF(sch)</code><code>*ptr</code>とする。</p>
@@ -254,6 +256,7 @@ <h2>クラス仕様</h2>
254256
<code><span href="https://cpprefjp.github.io/reference/execution/execution/system_context_replaceability/bulk_item_receiver_proxy.md.nolink">system_context_replaceability::bulk_item_receiver_proxy</span></code>を持つ<code>rcvr</code>のプロキシ<code>r</code>であり、インデクス<code>i</code>, <code>j</code>に対する<code>r.execute(i, j)</code><code>f(i, j, args...)</code>と同じ効果を持つ。</p>
255257
<p>呼び出し可能オブジェクト<code>f</code>と引数<code>arg</code>を持つ<code>rcvr</code>のバルク非チャンク化プロキシ(bulk unchunked proxy)は、基底
256258
<code><span href="https://cpprefjp.github.io/reference/execution/execution/system_context_replaceability/bulk_item_receiver_proxy.md.nolink">system_context_replaceability::bulk_item_receiver_proxy</span></code>を持つ<code>rcvr</code>のプロキシ<code>r</code>であり、インデクス<code>i</code>に対する<code>r.execute(i, i + 1)</code><code>f(i, args...)</code>と同じ効果を持つ。</p>
259+
<h3><code>schedule</code> ファクトリ</h3>
257260
<p>説明用の<code>b</code><code>BACKEND-OF(sch)</code><code>sndr</code><code><a href="schedule.html">schedule</a>(sch)</code>が返すオブジェクト、<code>rcvr</code><a href="receiver.html">Receiver</a>とする。<code>rcvr</code><code>sndr</code><a href="connect.html">接続(connect)</a>され、結果の<a href="operation_state.html">Operation State</a><a href="start.html">開始(start)</a>されたとき、</p>
258261
<ul>
259262
<li><code>sndr</code>が値完了するならば、<code><span href="https://cpprefjp.github.io/reference/execution/execution/system_context_replaceability/parallel_scheduler_backend/schedule.md.nolink">b.schedule</span>(r, s)</code>が呼ばれる。このとき、<ul>
@@ -263,6 +266,7 @@ <h2>クラス仕様</h2>
263266
</li>
264267
<li>他の全ての完了操作は、変更なしに転送される。</li>
265268
</ul>
269+
<h3><code>bulk_chunked</code> アダプタ</h3>
266270
<p><code>parallel_scheduler</code><code><a href="bulk_chunked.html">bulk_chunked</a></code>アルゴリズムのカスタマイズ実装を提供する。<a href="receiver.html">Receiver</a><code>rcvr</code><code>bulk_chunked(sndr, pol, shape, f)</code>が返す<a href="sender.html">Sender</a><a href="connect.html">接続(connect)</a>され、結果の<a href="operation_state.html">Operation State</a><a href="start.html">開始(start)</a>されたとき、</p>
267271
<ul>
268272
<li><code>sndr</code>が値<code>vals</code>で値完了するならば、<code>args</code><code>vals</code>を指す左辺値式のパックとして、<code><span href="https://cpprefjp.github.io/reference/execution/execution/system_context_replaceability/parallel_scheduler_backend/schedule_bulk_chunked.md.nolink">b.schedule_bulk_chunked</span>(shape, r, s)</code>が呼ばれる。このとき、<ul>
@@ -272,6 +276,7 @@ <h2>クラス仕様</h2>
272276
</li>
273277
<li>他の全ての完了操作は、変更なしに転送される。</li>
274278
</ul>
279+
<h3><code>bulk_unchunked</code> アダプタ</h3>
275280
<p><code>parallel_scheduler</code><code><a href="bulk_unchunked.html">bulk_unchunked</a></code>アルゴリズムのカスタマイズ実装を提供する。<a href="receiver.html">Receiver</a><code>rcvr</code><code>bulk_unchunked(sndr, pol, shape, f)</code>が返す<a href="sender.html">Sender</a><a href="connect.html">接続(connect)</a>され、結果の<a href="operation_state.html">Operation State</a><a href="start.html">開始(start)</a>されたとき、</p>
276281
<ul>
277282
<li><code>sndr</code>が値<code>vals</code>で値完了するならば、<code>args</code><code>vals</code>を指す左辺値式のパックとして、<code><span href="https://cpprefjp.github.io/reference/execution/execution/system_context_replaceability/parallel_scheduler_backend/schedule_bulk_unchunked.md.nolink">b.schedule_bulk_unchunked</span>(shape, r, s)</code>が呼ばれる。このとき、<ul>

0 commit comments

Comments
 (0)