Files
externals/linux/doc/Onixs.ICE.3.13.0.0/html/group__threading_model.html
2019-02-11 13:31:08 -05:00

73 lines
5.2 KiB
HTML

<!-- HTML header for doxygen 1.8.7-->
<!DOCTYPE html>
<html>
<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.11"/>
<title>OnixS ICE iMpact Multicast Feed Handler for C++: Threading Model</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" />
<link href="onixs-doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<header>
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><a href="http://www.onixs.biz"><img alt="Logo" src="onixs.gif"/></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">OnixS ICE iMpact Multicast Feed Handler for C++
&#160;<span id="projectnumber">3.13.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</header>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Threading Model<div class="ingroups"><a class="el" href="group__getting_started.html">Getting Started</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>An important issue that the users of OnixS C++ ICE iMpact Multicast Price Feed Handler library needs to consider is the threading model that is used by the components of the application. The threading model of a library determines how the methods of the listeners are assigned to threads in order to be executed and synchronized.</p>
<h1><a class="anchor" id="threadingModelOverview"></a>
Overview</h1>
<p>Handler processes market data coming from multicast feeds asynchronously. Handler uses internal pool of threads which size depends on multiple factors. All threads are spawned as soon as market data processing is started and are being executed until market data processing is accomplished. Handler spawns no additional threads while it's running.</p>
<h1><a class="anchor" id="threadingModelForErrorListener"></a>
Thread specific for ErrorListener</h1>
<p>The Handler may call <a class="el" href="class_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_error_listener.html" title="Defines the interface through which the Handler notifies subscribers about errors occurred while proc...">OnixS::ICE::iMpact::MarketData::ErrorListener</a> members simultaneously from different threads. Invocation of any member of <a class="el" href="class_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_error_listener.html" title="Defines the interface through which the Handler notifies subscribers about errors occurred while proc...">OnixS::ICE::iMpact::MarketData::ErrorListener</a> class is not synchronized by the Handler.</p>
<h1><a class="anchor" id="threadingModelForFeedListener"></a>
Thread specific for FeedListener</h1>
<p>The Handler may call <a class="el" href="class_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_feed_listener.html" title="Defines the interface through which the Handler notifies subscribers about feed events. ">OnixS::ICE::iMpact::MarketData::FeedListener</a> members simultaneously from different threads. Invocation of any member of <a class="el" href="class_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_feed_listener.html" title="Defines the interface through which the Handler notifies subscribers about feed events. ">OnixS::ICE::iMpact::MarketData::FeedListener</a> class is not synchronized by the Handler.</p>
<h1><a class="anchor" id="threadingModelHandlerStateListener"></a>
Thread specific for HandlerStateChangeListener</h1>
<p>The Handler can call <a class="el" href="class_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_state_change_listener.html" title="Handler state change listener. ">OnixS::ICE::iMpact::MarketData::HandlerStateChangeListener</a> members only from single thread.</p>
<h1><a class="anchor" id="threadingModelForBookListener"></a>
Thread specific for BookListener</h1>
<p>The Handler can call OnixS::ICE::iMpact::MarketData::BookListener members only from single thread.</p>
<h1><a class="anchor" id="threadingModelForExchangeListener"></a>
Thread specific for ExchangeListener</h1>
<p>The Handler can call <a class="el" href="class_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_exchange_listener.html" title="Defines an interface through which the Handler notifies subscribers about all received messages...">OnixS::ICE::iMpact::MarketData::ExchangeListener</a> members only from single thread. </p>
</div><!-- contents -->
</ul>
<hr class="footer"/><address class="footer"><small>&copy; <a href="http://www.onixs.biz">Onix Solutions [OnixS]</a>. All rights reserved.</small></address>
</div>
</body>
</html>