427 lines
23 KiB
HTML
427 lines
23 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.4"/>
|
|
<title>tbb::interface7::task_arena Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.4 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="a00228.html">tbb</a></li><li class="navelem"><b>interface7</b></li><li class="navelem"><a class="el" href="a00139.html">task_arena</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="#friends">Friends</a> |
|
|
<a href="a00384.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">tbb::interface7::task_arena Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><code>#include <task_arena.h></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for tbb::interface7::task_arena:</div>
|
|
<div class="dyncontent">
|
|
<div class="center">
|
|
<img src="a00139.png" usemap="#tbb::interface7::task_arena_map" alt=""/>
|
|
<map id="tbb::interface7::task_arena_map" name="tbb::interface7::task_arena_map">
|
|
</map>
|
|
</div></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html">attach</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Tag class used to indicate the "attaching" constructor. <a href="a00017.html#details">More...</a><br/></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:abe92eac81ca849b110de69e6efd0e5aa"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#abe92eac81ca849b110de69e6efd0e5aa">task_arena</a> (int max_concurrency_=automatic, unsigned reserved_for_masters=1)</td></tr>
|
|
<tr class="memdesc:abe92eac81ca849b110de69e6efd0e5aa"><td class="mdescLeft"> </td><td class="mdescRight">Creates <a class="el" href="a00139.html">task_arena</a> with certain concurrency limits. <a href="#abe92eac81ca849b110de69e6efd0e5aa">More...</a><br/></td></tr>
|
|
<tr class="separator:abe92eac81ca849b110de69e6efd0e5aa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a70d122b3e6e4760c6053c5c230c715ef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70d122b3e6e4760c6053c5c230c715ef"></a>
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a70d122b3e6e4760c6053c5c230c715ef">task_arena</a> (const <a class="el" href="a00139.html">task_arena</a> &s)</td></tr>
|
|
<tr class="memdesc:a70d122b3e6e4760c6053c5c230c715ef"><td class="mdescLeft"> </td><td class="mdescRight">Copies settings from another <a class="el" href="a00139.html">task_arena</a>. <br/></td></tr>
|
|
<tr class="separator:a70d122b3e6e4760c6053c5c230c715ef"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a84dfcfd70fd08d383b8d4e8b96fa4a0d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84dfcfd70fd08d383b8d4e8b96fa4a0d"></a>
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a84dfcfd70fd08d383b8d4e8b96fa4a0d">task_arena</a> (<a class="el" href="a00017.html">attach</a>)</td></tr>
|
|
<tr class="memdesc:a84dfcfd70fd08d383b8d4e8b96fa4a0d"><td class="mdescLeft"> </td><td class="mdescRight">Creates an instance of <a class="el" href="a00139.html">task_arena</a> attached to the current arena of the thread. <br/></td></tr>
|
|
<tr class="separator:a84dfcfd70fd08d383b8d4e8b96fa4a0d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a955131a79f8dc5a0a5c9ffa66a7e7140"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a955131a79f8dc5a0a5c9ffa66a7e7140"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a955131a79f8dc5a0a5c9ffa66a7e7140">initialize</a> ()</td></tr>
|
|
<tr class="memdesc:a955131a79f8dc5a0a5c9ffa66a7e7140"><td class="mdescLeft"> </td><td class="mdescRight">Forces allocation of the resources for the <a class="el" href="a00139.html">task_arena</a> as specified in constructor arguments. <br/></td></tr>
|
|
<tr class="separator:a955131a79f8dc5a0a5c9ffa66a7e7140"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae7986309715cf224f5320dc06ee7d335"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7986309715cf224f5320dc06ee7d335"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#ae7986309715cf224f5320dc06ee7d335">initialize</a> (int max_concurrency_, unsigned reserved_for_masters=1)</td></tr>
|
|
<tr class="memdesc:ae7986309715cf224f5320dc06ee7d335"><td class="mdescLeft"> </td><td class="mdescRight">Overrides concurrency level and forces initialization of internal representation. <br/></td></tr>
|
|
<tr class="separator:ae7986309715cf224f5320dc06ee7d335"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aace9ac1366eb3e0ec921da11699ba236"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aace9ac1366eb3e0ec921da11699ba236"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#aace9ac1366eb3e0ec921da11699ba236">initialize</a> (<a class="el" href="a00017.html">attach</a>)</td></tr>
|
|
<tr class="memdesc:aace9ac1366eb3e0ec921da11699ba236"><td class="mdescLeft"> </td><td class="mdescRight">Attaches this instance to the current arena of the thread. <br/></td></tr>
|
|
<tr class="separator:aace9ac1366eb3e0ec921da11699ba236"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aecb3eedeacfe8469a91c17525dae7fc9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#aecb3eedeacfe8469a91c17525dae7fc9">terminate</a> ()</td></tr>
|
|
<tr class="separator:aecb3eedeacfe8469a91c17525dae7fc9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9ff5a35a219953a4f3d99b833fa5f683"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a9ff5a35a219953a4f3d99b833fa5f683">~task_arena</a> ()</td></tr>
|
|
<tr class="separator:a9ff5a35a219953a4f3d99b833fa5f683"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad85856cefa30d42155a2b122b03efd8c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#ad85856cefa30d42155a2b122b03efd8c">is_active</a> () const </td></tr>
|
|
<tr class="separator:ad85856cefa30d42155a2b122b03efd8c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8034275ed2fffa68f70484043b90d406"><td class="memTemplParams" colspan="2">template<typename F > </td></tr>
|
|
<tr class="memitem:a8034275ed2fffa68f70484043b90d406"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00139.html#a8034275ed2fffa68f70484043b90d406">enqueue</a> (const F &f)</td></tr>
|
|
<tr class="separator:a8034275ed2fffa68f70484043b90d406"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9a04ab4afb2d74b0317618f59ab49be7"><td class="memTemplParams" colspan="2">template<typename F > </td></tr>
|
|
<tr class="memitem:a9a04ab4afb2d74b0317618f59ab49be7"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00139.html#a9a04ab4afb2d74b0317618f59ab49be7">enqueue</a> (const F &f, priority_t p)</td></tr>
|
|
<tr class="separator:a9a04ab4afb2d74b0317618f59ab49be7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af0c96f325b59d567b4c720f2830adde8"><td class="memTemplParams" colspan="2">template<typename F > </td></tr>
|
|
<tr class="memitem:af0c96f325b59d567b4c720f2830adde8"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00139.html#af0c96f325b59d567b4c720f2830adde8">execute</a> (F &f)</td></tr>
|
|
<tr class="separator:af0c96f325b59d567b4c720f2830adde8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab8442c8e9e3e678349409e08cabc7ae2"><td class="memTemplParams" colspan="2">template<typename F > </td></tr>
|
|
<tr class="memitem:ab8442c8e9e3e678349409e08cabc7ae2"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00139.html#ab8442c8e9e3e678349409e08cabc7ae2">execute</a> (const F &f)</td></tr>
|
|
<tr class="separator:ab8442c8e9e3e678349409e08cabc7ae2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a07d87dff8c6116ee349684e10f754aeb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a07d87dff8c6116ee349684e10f754aeb">debug_wait_until_empty</a> ()</td></tr>
|
|
<tr class="separator:a07d87dff8c6116ee349684e10f754aeb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2977b0fba9253e6cab31570f4992c998"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2977b0fba9253e6cab31570f4992c998"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a2977b0fba9253e6cab31570f4992c998">max_concurrency</a> () const </td></tr>
|
|
<tr class="memdesc:a2977b0fba9253e6cab31570f4992c998"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximal number of threads that can work inside the arena. <br/></td></tr>
|
|
<tr class="separator:a2977b0fba9253e6cab31570f4992c998"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:af695a8aa3d2a4f498067c662e287dd8f"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#af695a8aa3d2a4f498067c662e287dd8f">current_thread_index</a> ()</td></tr>
|
|
<tr class="separator:af695a8aa3d2a4f498067c662e287dd8f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
|
|
Friends</h2></td></tr>
|
|
<tr class="memitem:a6887d06dd0f104ab6c06fdddca4d2471"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6887d06dd0f104ab6c06fdddca4d2471"></a>
|
|
class </td><td class="memItemRight" valign="bottom"><b>tbb::internal::task_scheduler_observer_v3</b></td></tr>
|
|
<tr class="separator:a6887d06dd0f104ab6c06fdddca4d2471"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a591c8245104c8eeade3e577df3951feb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a591c8245104c8eeade3e577df3951feb"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>tbb::this_task_arena::max_concurrency</b> ()</td></tr>
|
|
<tr class="separator:a591c8245104c8eeade3e577df3951feb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>1-to-1 proxy representation class of scheduler's arena Constructors set up settings only, real construction is deferred till the first method invocation Destructor only removes one of the references to the inner arena representation. Final destruction happens when all the references (and the work) are gone. </p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="abe92eac81ca849b110de69e6efd0e5aa"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">tbb::interface7::task_arena::task_arena </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>max_concurrency_</em> = <code>automatic</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>reserved_for_masters</em> = <code>1</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates <a class="el" href="a00139.html">task_arena</a> with certain concurrency limits. </p>
|
|
<p>Sets up settings only, real construction is deferred till the first method invocation </p>
|
|
<ul>
|
|
<li>max_concurrency specifies total number of slots in arena where threads work </li>
|
|
<li>reserved_for_masters specifies number of slots to be used by master threads only. Value of 1 is default and reflects behavior of implicit arenas. </li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9ff5a35a219953a4f3d99b833fa5f683"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">tbb::interface7::task_arena::~task_arena </td>
|
|
<td>(</td>
|
|
<td class="paramname">)</td><td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Removes the reference to the internal arena representation, and destroys the external object. Not thread safe wrt concurrent invocations of other methods. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="af695a8aa3d2a4f498067c662e287dd8f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static int tbb::interface7::task_arena::current_thread_index </td>
|
|
<td>(</td>
|
|
<td class="paramname">)</td><td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Returns the index, aka slot number, of the calling thread in its current arena This method is deprecated and replaced with this_task_arena::current_thread_index() </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a07d87dff8c6116ee349684e10f754aeb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void tbb::interface7::task_arena::debug_wait_until_empty </td>
|
|
<td>(</td>
|
|
<td class="paramname">)</td><td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Wait for all work in the arena to be completed Even submitted by other application threads Joins arena if/when possible (in the same way as <a class="el" href="a00139.html#af0c96f325b59d567b4c720f2830adde8">execute()</a>) </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8034275ed2fffa68f70484043b90d406"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename F > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void tbb::interface7::task_arena::enqueue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const F & </td>
|
|
<td class="paramname"><em>f</em>)</td><td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Enqueues a task into the arena to process a functor, and immediately returns. Does not require the calling thread to join the arena </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9a04ab4afb2d74b0317618f59ab49be7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename F > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void tbb::interface7::task_arena::enqueue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const F & </td>
|
|
<td class="paramname"><em>f</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">priority_t </td>
|
|
<td class="paramname"><em>p</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Enqueues a task with priority p into the arena to process a functor f, and immediately returns. Does not require the calling thread to join the arena </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af0c96f325b59d567b4c720f2830adde8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename F > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void tbb::interface7::task_arena::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">F & </td>
|
|
<td class="paramname"><em>f</em>)</td><td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Joins the arena and executes a functor, then returns If not possible to join, wraps the functor into a task, enqueues it and waits for task completion Can decrement the arena demand for workers, causing a worker to leave and free a slot to the calling thread </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab8442c8e9e3e678349409e08cabc7ae2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename F > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void tbb::interface7::task_arena::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const F & </td>
|
|
<td class="paramname"><em>f</em>)</td><td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Joins the arena and executes a functor, then returns If not possible to join, wraps the functor into a task, enqueues it and waits for task completion Can decrement the arena demand for workers, causing a worker to leave and free a slot to the calling thread </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad85856cefa30d42155a2b122b03efd8c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool tbb::interface7::task_arena::is_active </td>
|
|
<td>(</td>
|
|
<td class="paramname">)</td><td></td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Returns true if the arena is active (initialized); false otherwise. The name was chosen to match a <a class="el" href="a00145.html" title="Class delimiting the scope of task scheduler activity. ">task_scheduler_init</a> method with the same semantics. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aecb3eedeacfe8469a91c17525dae7fc9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void tbb::interface7::task_arena::terminate </td>
|
|
<td>(</td>
|
|
<td class="paramname">)</td><td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Removes the reference to the internal arena representation. Not thread safe wrt concurrent invocations of other methods. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>task_arena.h</li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<hr>
|
|
<p></p>
|
|
Copyright © 2005-2016 Intel Corporation. All Rights Reserved.
|
|
<p></p>
|
|
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
|
|
registered trademarks or trademarks of Intel Corporation or its
|
|
subsidiaries in the United States and other countries.
|
|
<p></p>
|
|
* Other names and brands may be claimed as the property of others.
|