Updated the website built from mesos SHA: 3d2a1fd.
Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/805f4c5b Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/805f4c5b Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/805f4c5b Branch: refs/heads/asf-site Commit: 805f4c5b104717f3baae7751026742879028474f Parents: 0a0aa73 Author: jenkins <[email protected]> Authored: Wed May 23 23:55:01 2018 +0000 Committer: jenkins <[email protected]> Committed: Wed May 23 23:55:01 2018 +0000 ---------------------------------------------------------------------- ...ude_2process_2authenticator_8hpp_source.html | 2 +- ...ocess_2include_2process_2io_8hpp_source.html | 2 +- ..._2include_2process_2limiter_8hpp_source.html | 14 +- ...cess_2include_2process_2pid_8hpp_source.html | 2 +- ...s_2include_2process_2shared_8hpp_source.html | 6 +- content/api/latest/c++/Nodes.xml | 323 ++-- content/api/latest/c++/Tokens.xml | 195 +- content/api/latest/c++/annotated.html | 9 +- .../latest/c++/appc_2runtime_8hpp_source.html | 2 +- content/api/latest/c++/async_8hpp_source.html | 2 +- ...tication_2secret__generator_8hpp_source.html | 2 +- .../c++/basic__authenticatee_8hpp_source.html | 2 +- content/api/latest/c++/blkio_8hpp_source.html | 2 +- .../c++/checker__process_8hpp_source.html | 4 +- content/api/latest/c++/classError.html | 9 +- content/api/latest/c++/classError.png | Bin 3140 -> 3498 bytes content/api/latest/c++/classes.html | 378 ++-- ...assmesos_1_1csi_1_1v0_1_1Client-members.html | 2 +- .../c++/classmesos_1_1csi_1_1v0_1_1Client.html | 10 +- ...ernal_1_1tests_1_1MockCSIPlugin-members.html | 2 +- ...s_1_1internal_1_1tests_1_1MockCSIPlugin.html | 8 +- .../c++/classprocess_1_1Future-members.html | 4 +- .../api/latest/c++/classprocess_1_1Future.html | 22 +- ...classprocess_1_1grpc_1_1Channel-members.html | 71 - .../c++/classprocess_1_1grpc_1_1Channel.html | 173 -- ...sprocess_1_1grpc_1_1StatusError-members.html | 73 + .../classprocess_1_1grpc_1_1StatusError.html | 146 ++ .../c++/classprocess_1_1grpc_1_1StatusError.png | Bin 0 -> 576 bytes ...1_1grpc_1_1client_1_1Connection-members.html | 71 + ...process_1_1grpc_1_1client_1_1Connection.html | 165 ++ ...ss_1_1grpc_1_1client_1_1Runtime-members.html | 2 +- ...assprocess_1_1grpc_1_1client_1_1Runtime.html | 29 +- content/api/latest/c++/client_8hpp_source.html | 10 +- content/api/latest/c++/collect_8hpp_source.html | 34 +- .../combined__authenticator_8hpp_source.html | 2 +- .../api/latest/c++/consensus_8hpp_source.html | 2 +- .../c++/contender_2standalone_8hpp_source.html | 2 +- .../api/latest/c++/coordinator_8hpp_source.html | 2 +- .../c++/count__down__latch_8hpp_source.html | 4 +- content/api/latest/c++/counter_8hpp_source.html | 2 +- content/api/latest/c++/cpuacct_8hpp_source.html | 2 +- .../c++/detector_2standalone_8hpp_source.html | 2 +- .../api/latest/c++/dispatch_8hpp_source.html | 2 +- .../latest/c++/docker_2docker_8hpp_source.html | 4 +- .../latest/c++/docker_2runtime_8hpp_source.html | 2 +- .../latest/c++/docker__archive_8hpp_source.html | 4 +- .../latest/c++/docker__common_8hpp_source.html | 6 +- content/api/latest/c++/driver_8hpp_source.html | 2 +- .../c++/environment__secret_8hpp_source.html | 2 +- content/api/latest/c++/event_8hpp_source.html | 2 +- content/api/latest/c++/functions_a.html | 4 +- content/api/latest/c++/functions_c.html | 30 +- content/api/latest/c++/functions_e.html | 2 +- content/api/latest/c++/functions_func_c.html | 26 +- content/api/latest/c++/functions_func_n.html | 10 +- content/api/latest/c++/functions_func_p.html | 2 +- content/api/latest/c++/functions_func_r.html | 13 +- content/api/latest/c++/functions_func_s.html | 9 +- content/api/latest/c++/functions_func_t.html | 2 +- content/api/latest/c++/functions_func_v.html | 6 +- content/api/latest/c++/functions_func_w.html | 2 +- content/api/latest/c++/functions_i.html | 2 +- content/api/latest/c++/functions_n.html | 20 +- content/api/latest/c++/functions_p.html | 22 +- content/api/latest/c++/functions_r.html | 29 +- content/api/latest/c++/functions_rela.html | 9 +- content/api/latest/c++/functions_s.html | 34 +- content/api/latest/c++/functions_t.html | 18 +- content/api/latest/c++/functions_type.html | 9 + content/api/latest/c++/functions_u.html | 4 +- content/api/latest/c++/functions_v.html | 8 +- content/api/latest/c++/functions_vars_c.html | 3 + content/api/latest/c++/functions_vars_r.html | 3 +- content/api/latest/c++/functions_vars_s.html | 2 +- content/api/latest/c++/future_8hpp.html | 1 + content/api/latest/c++/future_8hpp_source.html | 192 +- content/api/latest/c++/globals_defs_g.html | 4 +- content/api/latest/c++/globals_func.html | 7 +- content/api/latest/c++/globals_g.html | 4 +- content/api/latest/c++/globals_s.html | 10 +- content/api/latest/c++/gmock_8hpp_source.html | 6 +- content/api/latest/c++/group_8hpp_source.html | 4 +- content/api/latest/c++/grpc_8hpp.html | 25 +- content/api/latest/c++/grpc_8hpp_source.html | 37 +- content/api/latest/c++/hierarchy.html | 1660 +++++++++--------- .../latest/c++/hook_2manager_8hpp_source.html | 2 +- content/api/latest/c++/hook_8hpp_source.html | 2 +- .../api/latest/c++/host__path_8hpp_source.html | 2 +- .../c++/http__connection_8hpp_source.html | 8 +- content/api/latest/c++/image_8hpp_source.html | 2 +- .../api/latest/c++/in__memory_8hpp_source.html | 2 +- ...thentication_2authenticator_8hpp_source.html | 2 +- ...cation_2http_2authenticatee_8hpp_source.html | 2 +- .../include_2mesos_2log_2log_8hpp_source.html | 2 +- ...de_2mesos_2master_2detector_8hpp_source.html | 2 +- ...lude_2mesos_2state_2leveldb_8hpp_source.html | 2 +- .../include_2mesos_2state_2log_8hpp_source.html | 2 +- ...ude_2mesos_2state_2protobuf_8hpp_source.html | 4 +- ...nclude_2mesos_2state_2state_8hpp_source.html | 2 +- ...lude_2mesos_2state_2storage_8hpp_source.html | 2 +- ...de_2mesos_2state_2zookeeper_8hpp_source.html | 2 +- ...2mesos_2zookeeper_2detector_8hpp_source.html | 2 +- content/api/latest/c++/index.hhc | 123 +- content/api/latest/c++/index.hhk | 239 +-- content/api/latest/c++/index.hhp | 13 +- content/api/latest/c++/ipc_8hpp_source.html | 2 +- .../c++/jwt__secret__generator_8hpp_source.html | 2 +- .../latest/c++/lib__logrotate_8hpp_source.html | 2 +- content/api/latest/c++/libev_8hpp_source.html | 4 +- .../c++/libevent__ssl__socket_8hpp_source.html | 2 +- ...ss_2include_2process_2check_8hpp_source.html | 14 +- ...ss_2include_2process_2gtest_8hpp_source.html | 20 +- ...s_2include_2process_2socket_8hpp_source.html | 2 +- ...process_2windows_2jobobject_8hpp_source.html | 4 +- .../latest/c++/linux_2cgroups_8hpp_source.html | 2 +- .../latest/c++/linux__launcher_8hpp_source.html | 2 +- content/api/latest/c++/load_8hpp_source.html | 2 +- .../latest/c++/local__puller_8hpp_source.html | 2 +- content/api/latest/c++/loop_8hpp_source.html | 20 +- .../c++/master_2contender_8hpp_source.html | 2 +- .../c++/master_2registrar_8hpp_source.html | 6 +- content/api/latest/c++/metric_8hpp_source.html | 2 +- .../latest/c++/metrics_2timer_8hpp_source.html | 6 +- .../c++/mock__csi__plugin_8hpp_source.html | 4 +- .../latest/c++/mock__docker_8hpp_source.html | 2 +- .../api/latest/c++/mock__slave_8hpp_source.html | 2 +- content/api/latest/c++/mutex_8hpp_source.html | 2 +- .../latest/c++/namespaceprocess_1_1grpc.html | 7 +- .../c++/namespaceprocess_1_1grpc_1_1client.html | 9 + ...ceprocess_1_1grpc_1_1client_1_1internal.html | 73 + content/api/latest/c++/namespaces.html | 3 +- content/api/latest/c++/perf_8hpp_source.html | 2 +- .../latest/c++/poll__socket_8hpp_source.html | 2 +- content/api/latest/c++/posix_8hpp_source.html | 4 +- .../latest/c++/protobuf__utils_8hpp_source.html | 2 +- .../api/latest/c++/pull__gauge_8hpp_source.html | 2 +- content/api/latest/c++/puller_8hpp_source.html | 2 +- .../api/latest/c++/push__gauge_8hpp_source.html | 2 +- .../c++/qos__controllers_2noop_8hpp_source.html | 2 +- content/api/latest/c++/queue_8hpp_source.html | 8 +- content/api/latest/c++/reap_8hpp_source.html | 2 +- content/api/latest/c++/recover_8hpp_source.html | 2 +- .../c++/registry__puller_8hpp_source.html | 2 +- content/api/latest/c++/replica_8hpp_source.html | 2 +- .../api/latest/c++/resolver_8hpp_source.html | 2 +- .../resource__estimators_2noop_8hpp_source.html | 2 +- ...resource__provider_2manager_8hpp_source.html | 2 +- ...source__provider_2registrar_8hpp_source.html | 4 +- ...age_2disk__profile__adaptor_8hpp_source.html | 2 +- content/api/latest/c++/run_8hpp_source.html | 2 +- content/api/latest/c++/sandbox_8hpp_source.html | 2 +- content/api/latest/c++/secret_8hpp_source.html | 2 +- .../api/latest/c++/sequence_8hpp_source.html | 4 +- .../slave_2container__logger_8hpp_source.html | 2 +- ...lators_2linux_2capabilities_8hpp_source.html | 2 +- ..._2isolators_2posix_2rlimits_8hpp_source.html | 2 +- ...tainerizer_2mesos_2launcher_8hpp_source.html | 2 +- .../c++/slave_2qos__controller_8hpp_source.html | 2 +- .../slave_2resource__estimator_8hpp_source.html | 2 +- ...n_2cram__md5_2authenticator_8hpp_source.html | 2 +- .../c++/src_2common_2http_8hpp_source.html | 2 +- .../c++/src_2common_2recordio_8hpp_source.html | 14 +- .../latest/c++/src_2log_2log_8hpp_source.html | 4 +- .../c++/src_2log_2network_8hpp_source.html | 12 +- ...aster_2contender_2zookeeper_8hpp_source.html | 2 +- ...master_2detector_2zookeeper_8hpp_source.html | 2 +- .../c++/src_2master_2master_8hpp_source.html | 2 +- ...esource__provider_2detector_8hpp_source.html | 2 +- ...ontainerizer_2containerizer_8hpp_source.html | 2 +- ...olators_2filesystem_2shared_8hpp_source.html | 2 +- ..._2isolators_2gpu_2allocator_8hpp_source.html | 2 +- ...2isolators_2namespaces_2pid_8hpp_source.html | 2 +- .../c++/src_2slave_2http_8hpp_source.html | 2 +- .../src_2tests_2containerizer_8hpp_source.html | 2 +- .../c++/src_2version_2version_8hpp_source.html | 2 +- .../latest/c++/state__machine_8hpp_source.html | 2 +- ...s__update__manager__process_8hpp_source.html | 2 +- content/api/latest/c++/stringify_8hpp.html | 27 + .../api/latest/c++/stringify_8hpp_source.html | 8 +- ...uctprocess_1_1grpc_1_1RpcResult-members.html | 71 - .../c++/structprocess_1_1grpc_1_1RpcResult.html | 162 -- ...c_1_1client_1_1internal_1_1MethodTraits.html | 70 + ...rpc_1_19b770dc78e11f9f674179c48295eb8ff.html | 71 + ...rpc_1_1b922a69900827d65b241714130bc07ca.html | 126 ++ .../api/latest/c++/subprocess_8hpp_source.html | 2 +- .../api/latest/c++/switchboard_8hpp_source.html | 2 +- content/api/latest/c++/system_8hpp_source.html | 4 +- ...ts_2containerizer_2launcher_8hpp_source.html | 2 +- ...tests_2containerizer_2store_8hpp_source.html | 2 +- content/api/latest/c++/time_8hpp_source.html | 2 +- .../api/latest/c++/timeseries_8hpp_source.html | 2 +- ...uri__disk__profile__adaptor_8hpp_source.html | 2 +- .../latest/c++/v1_2scheduler_8hpp_source.html | 2 +- content/api/latest/c++/watcher_8hpp_source.html | 2 +- .../c++/zookeeper_2contender_8hpp_source.html | 2 +- content/sitemap.xml | 48 +- 196 files changed, 3007 insertions(+), 2380 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos-site/blob/805f4c5b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2authenticator_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2authenticator_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2authenticator_8hpp_source.html index eab3b69..f20893d 100644 --- a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2authenticator_8hpp_source.html +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2authenticator_8hpp_source.html @@ -80,7 +80,7 @@ <div class="ttc" id="hashmap_8hpp_html"><div class="ttname"><a href="hashmap_8hpp.html">hashmap.hpp</a></div></div> <div class="ttc" id="structprocess_1_1http_1_1authentication_1_1Principal_html_adc3ac4f7e1870a4a21bae5f3f596589d"><div class="ttname"><a href="structprocess_1_1http_1_1authentication_1_1Principal.html#adc3ac4f7e1870a4a21bae5f3f596589d">process::http::authentication::Principal::claims</a></div><div class="ttdeci">hashmap< std::string, std::string > claims</div><div class="ttdef"><b>Definition:</b> authenticator.hpp:69</div></div> <div class="ttc" id="namespaceprocess_1_1http_1_1authentication_html_ac9e252b8318f0ef96f408664b94b7b75"><div class="ttname"><a href="namespaceprocess_1_1http_1_1authentication.html#ac9e252b8318f0ef96f408664b94b7b75">process::http::authentication::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &stream, const Principal &principal)</div></div> -<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future</a></div><div class="ttdef"><b>Definition:</b> future.hpp:57</div></div> +<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future</a></div><div class="ttdef"><b>Definition:</b> future.hpp:58</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/805f4c5b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html index 1ae1df7..63545f8 100644 --- a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html @@ -66,7 +66,7 @@ <div class="ttc" id="namespaceprocess_html"><div class="ttname"><a href="namespaceprocess.html">process</a></div><div class="ttdef"><b>Definition:</b> executor.hpp:47</div></div> <div class="ttc" id="namespaceprocess_1_1io_html_a4c34d22e475e29f12ac739921dcc580f"><div class="ttname"><a href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">process::io::read</a></div><div class="ttdeci">Future< size_t > read(int_fd fd, void *data, size_t size)</div><div class="ttdoc">Performs a single non-blocking read by polling on the specified file descriptor until any data can be...</div></div> <div class="ttc" id="int__fd_8hpp_html_aea4dbda01c90455f158ffa9b924c2f07"><div class="ttname"><a href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a></div><div class="ttdeci">int int_fd</div><div class="ttdef"><b>Definition:</b> int_fd.hpp:35</div></div> -<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future</a></div><div class="ttdef"><b>Definition:</b> future.hpp:57</div></div> +<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future</a></div><div class="ttdef"><b>Definition:</b> future.hpp:58</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/805f4c5b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2limiter_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2limiter_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2limiter_8hpp_source.html index b759613..12797a3 100644 --- a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2limiter_8hpp_source.html +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2limiter_8hpp_source.html @@ -55,9 +55,9 @@ <a href="3rdparty_2libprocess_2include_2process_2limiter_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6 </span> <span class="comment">//</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License</span></div><div class="line"><a name="l00012"></a><span class="linen o"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __PROCESS_LIMITER_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __PROCESS_LIMITER_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <deque></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="defer_8hpp.html">process/defer.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="delay_8hpp.html">process/dela y.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="dispatch_8hpp.html">process/dispatch.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="id_8hpp.html">process/id.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="future_8hpp.html">process/future.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="libprocess_2include_2process_2process_8hpp.html">process/process.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="timeout_8hpp.ht ml">process/timeout.hpp</a>></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="duration_8hpp.html">stout/duration.hpp</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="foreach_8hpp.html">stout/foreach.hpp</a>></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespaceprocess.html">process</a> {</div><div class= "line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">// Forward declaration.</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">class </span>RateLimiterProcess;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">// Provides an abstraction that rate limits the number of "permits"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">// that can be acquired over some duration.</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// NOTE: Currently, each libprocess Process should use a separate</span></div><div class="line"><a name="l00038"></a><sp an class="lineno"> 38</span> <span class="comment">// RateLimiter instance. This is because if multiple processes share</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment">// a RateLimiter instance, by the time a process acts on the Future</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// returned by 'acquire()' another process might have acquired the</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">// next permit and do its rate limited operation.</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiter.html"> 42</a></span> <span class="keyword">class </span><a class="code" href="classprocess_1_1RateLimiter.html">RateLimiter</a></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> { </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classprocess_1_1RateLimiter.html#a0713f934ac780968289ea0bcbe7cc6ee">RateLimiter</a>(<span class="keywordtype">int</span> permits, <span class="keyword">const</span> <a class="code" href="classDuration.html">Duration</a>& duration);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">explicit</span> <a class="code" href="classprocess_1_1RateLimiter.html#a0713f934ac780968289ea0bcbe7cc6ee">RateLimiter</a>(<span class="keywordtype">double</span> permitsPerSecond);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1RateLimiter.html#a09f3220a7f68fb473745accc16847f45">~RateLimiter</a>();</div><div cla ss="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">// Returns a future that becomes ready when the permit is acquired.</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="comment">// Discarding this future cancels this acquisition.</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="classprocess_1_1RateLimiter.html#aeba2f8234c93c3f34cd6de8fbc595b96">acquire</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">private</span>:</div><div class="line"><a name="l0 0054"></a><span class="lineno"> 54</span>  <span class="comment">// Not copyable, not assignable.</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classprocess_1_1RateLimiter.html#a0713f934ac780968289ea0bcbe7cc6ee">RateLimiter</a>(<span class="keyword">const</span> <a class="code" href="classprocess_1_1RateLimiter.html">RateLimiter</a>&);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classprocess_1_1RateLimiter.html">RateLimiter</a>& operator=(<span class="keyword">const</span> <a class="code" href="classprocess_1_1RateLimiter.html">RateLimiter</a>&);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a>* <a class="code" href="namespaceproces s.html">process</a>;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> };</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiterProcess.html"> 62</a></span> <span class="keyword">class </span><a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1Process.html">Process</a><RateLimiterProcess></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiterProc ess.html#aba017815b6fb2fb21894733c26ccc7c6"> 65</a></span>  <a class="code" href="classprocess_1_1RateLimiterProcess.html#aba017815b6fb2fb21894733c26ccc7c6">RateLimiterProcess</a>(<span class="keywordtype">int</span> permits, <span class="keyword">const</span> <a class="code" href="classDuration.html">Duration</a>& duration)</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  : <a class="code" href="classprocess_1_1ProcessBase.html">ProcessBase</a>(ID::<a class="code" href="namespaceprocess_1_1ID.html#aeb11a48c9def1da169d8455a30d0ee39">generate</a>(<span class="stringliteral">"__limiter__"</span>))</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  CHECK_GT(permits, 0);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  CHECK_GT(duration.<a class="code" href="classDurati on.html#a31ebb8d92dc93914cb830d70753d802b">secs</a>(), 0);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  permitsPerSecond = permits / duration.<a class="code" href="classDuration.html#a31ebb8d92dc93914cb830d70753d802b">secs</a>();</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiterProcess.html#a7bb926cce009ffbe0de571b37e406578"> 73</a></span>  <span class="keyword">explicit</span> <a class="code" href="classprocess_1_1RateLimiterProcess.html#a7bb926cce009ffbe0de571b37e406578">RateLimiterProcess</a>(<span class="keywordtype">double</span> _permitsPerSecond)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  : <a class="code" href="classprocess_1_1ProcessBase.html">Proces sBase</a>(ID::<a class="code" href="namespaceprocess_1_1ID.html#aeb11a48c9def1da169d8455a30d0ee39">generate</a>(<span class="stringliteral">"__limiter__"</span>)),</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  permitsPerSecond(_permitsPerSecond)</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  CHECK_GT(permitsPerSecond, 0);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiterProcess.html#a52f385d91c5420d62baef6c6054b408a"> 80</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classprocess_1_1RateLimiterProcess.html #a52f385d91c5420d62baef6c6054b408a">finalize</a>()</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">foreach</span> (<a class="code" href="classprocess_1_1Promise.html">Promise<Nothing></a>* <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">promise</a>, promises) {</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  promise-><a class="code" href="classprocess_1_1Promise.html#a8f50fcfd7ddb6dd39ec2cd468377cd5d">discard</a>();</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">delete</span> <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">promise</a>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 8 5</span>  }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  promises.clear();</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiterProcess.html#a086e9e06200ceca6f9c6407e906406fc"> 89</a></span>  <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="classprocess_1_1RateLimiterProcess.html#a086e9e06200ceca6f9c6407e906406fc">acquire</a>()</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">if</span> (!promises.empty()) {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// Need to wait for others to get permits first.</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classprocess_1_1Promise.html">Promise<Nothing></a>* <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">promise</a> = <span class="keyword">new</span> <a class="code" href="classprocess_1_1Promise.html">Promise<Nothing></a>();</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  promises.push_back(promise);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> promise-><a class="code" href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">future</a>()</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  .<a class="code" href="classprocess_1_1Future.html#a1b80bf321358be4488 0d9c6bae5d9a2d">onDiscard</a>(<a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<span class="keyword">self</span>(), &<a class="code" href="namespaceprocess_1_1internal.html#a58d2ee086b173d21a4fc0550f843dd2e">Self::discard</a>, promise-><a class="code" href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">future</a>()));</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">if</span> (timeout.remaining() > <a class="code" href="classSeconds.html">Seconds</a>(0)) {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// Need to wait a bit longer, but first one in the queue.</span></div><div class="line"><a name="l00101"></a><span class ="lineno"> 101</span>  <a class="code" href="classprocess_1_1Promise.html">Promise<Nothing></a>* <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">promise</a> = <span class="keyword">new</span> <a class="code" href="classprocess_1_1Promise.html">Promise<Nothing></a>();</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  promises.push_back(promise);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="namespaceprocess.html#ad46335bec9fe626e60003c33e8f13023">delay</a>(timeout.remaining(), <span class="keyword">self</span>(), &Self::_acquire);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">return</span> promise-><a class="code" href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">future</a>()</div><div class="line"><a name ="l00105"></a><span class="lineno"> 105</span>  .<a class="code" href="classprocess_1_1Future.html#a1b80bf321358be44880d9c6bae5d9a2d">onDiscard</a>(<a class="code" href="namespaceprocess.html#a8b27a2ef76eb133bf0ce7a5eea4fb77c">defer</a>(<span class="keyword">self</span>(), &<a class="code" href="namespaceprocess_1_1internal.html#a58d2ee086b173d21a4fc0550f843dd2e">Self::discard</a>, promise-><a class="code" href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">future</a>()));</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// No need to wait!</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  timeout = <a class="code" href="classSeconds.html">Seconds</a>(1) / permitsPerSecond; </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="comment">// Not copyable, not assignable.</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a>(<span class="keyword">const</span> <a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a>&);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</sp an>  <a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a>& operator=(<span class="keyword">const</span> <a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a>&);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordtype">void</span> _acquire()</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  CHECK(!promises.empty());</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// Keep removing the top of the queue until we find a promise</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>   <span class="comment">// whose future is not discarded.</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">while</span> (!promises.empty()) {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="classprocess_1_1Promise.html">Promise<Nothing></a>* <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">promise</a> = promises.front();</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  promises.pop_front();</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">if</span> (!promise-><a class="code" href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">future</a>().<a class="code" href="classprocess_1_1Future.html#abc89036db733a417b7b383b091efaf3c">isDiscarded</a>()) {</div><div cl ass="line"><a name="l00128"></a><span class="lineno"> 128</span>  promise-><a class="code" href="classprocess_1_1Promise.html#a989b8dfa7eb2633de3f0f25ac2b87943">set</a>(<a class="code" href="structNothing.html">Nothing</a>());</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">delete</span> <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">promise</a>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  timeout = <a class="code" href="classSeconds.html">Seconds</a>(1) / permitsPerSecond;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keyword">delete</span> <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">promise</a>;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="comment">// Repeat if necessary.</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span> (!promises.empty()) {</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="namespaceprocess.html#ad46335bec9fe626e60003c33e8f13023">delay</a>(timeout.remaining(), <span class="keyword">self</span>(), &Self::_acquire);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  }</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">void</span> <a class="code" href="namespaceprocess.html#adc504b79a0e7ec7c4caa088a937d4feb">discard</a>(<span class="keyword">const</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a>& future)</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  {</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">foreach</span> (<a class="code" href="classprocess_1_1Promise.html">Promise<Nothing></a>* <a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">pro mise</a>, promises) {</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">if</span> (promise-><a class="code" href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">future</a>() == future) {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  promise-><a class="code" href="classprocess_1_1Promise.html#a8f50fcfd7ddb6dd39ec2cd468377cd5d">discard</a>();</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  }</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  }</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordtype">double</span> permitsPerSecond;</div><div class="line"><a n ame="l00153"></a><span class="lineno"> 153</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="classprocess_1_1Timeout.html">Timeout</a> timeout;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  std::deque<Promise<Nothing>*> promises;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> };</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiter.html#a0713f934ac780968289ea0bcbe7cc6ee"> 160</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1RateLimiter.html#a0713f934ac780968289ea0bcbe7cc6ee">Rate Limiter::RateLimiter</a>(<span class="keywordtype">int</span> permits, <span class="keyword">const</span> <a class="code" href="classDuration.html">Duration</a>& duration)</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="namespaceprocess.html">process</a> = <span class="keyword">new</span> <a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a>(permits, duration);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="namespaceprocess.html#aff22904a83567125d3b4d0d88e5a2270">spawn</a>(<a class="code" href="namespaceprocess.html">process</a>);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> }</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div><div class="line"><a name="l00166"></a><span c lass="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiter.html#a8e2352ea8c6e3817ba54861579f79a6a"> 167</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1RateLimiter.html#a0713f934ac780968289ea0bcbe7cc6ee">RateLimiter::RateLimiter</a>(<span class="keywordtype">double</span> permitsPerSecond)</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> {</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="namespaceprocess.html">process</a> = <span class="keyword">new</span> <a class="code" href="classprocess_1_1RateLimiterProcess.html">RateLimiterProcess</a>(permitsPerSecond);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="namespaceprocess.html#aff22904a83567125d3b4d0d88e5a2270">spawn</a>(<a class="code" href="namespacepr ocess.html">process</a>);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> }</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiter.html#a09f3220a7f68fb473745accc16847f45"> 174</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1RateLimiter.html#a09f3220a7f68fb473745accc16847f45">RateLimiter::~RateLimiter</a>()</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> {</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="namespaceprocess.html#a20443908afa3212215166e26065349e5">terminate</a>(<a class="code" href="namespaceprocess.html">process</a>);</div><div class="line"><a name="l00177"></a><span class="line no"> 177</span>  <a class="code" href="namespaceprocess.html#a07833fb41a8b0c1f18fa5485ca8c18d4">wait</a>(<a class="code" href="namespaceprocess.html">process</a>);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">delete</span> <a class="code" href="namespaceprocess.html">process</a>;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> }</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classprocess_1_1RateLimiter.html#aeba2f8234c93c3f34cd6de8fbc595b96"> 182</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="classprocess_1_1RateLimiter.html#aeba2f8234c93c3f34cd6de8fbc595b96">RateLimiter::a cquire</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keyword"></span>{</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceprocess.html#acfbc29404bc653268289691b0dd59e22">dispatch</a>(<a class="code" href="namespaceprocess.html">process</a>, &<a class="code" href="classprocess_1_1RateLimiterProcess.html#a086e9e06200ceca6f9c6407e906406fc">RateLimiterProcess::acquire</a>);</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> }</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> } <span class="comment">// namespace process {</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l0 0189"></a><span class="lineno"> 189</span> <span class="preprocessor">#endif // __PROCESS_LIMITER_HPP__</span></div><div class="ttc" id="namespaceprocess_1_1ID_html_aeb11a48c9def1da169d8455a30d0ee39"><div class="ttname"><a href="namespaceprocess_1_1ID.html#aeb11a48c9def1da169d8455a30d0ee39">process::ID::generate</a></div><div class="ttdeci">std::string generate(const std::string &prefix="")</div><div class="ttdoc">Returns &#39;prefix(N)&#39; where N represents the number of instances where the same prefix (wrt...</div></div> <div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div> <div class="ttc" id="delay_8hpp_html"><div class="ttname"><a href="delay_8hpp.html">delay.hpp</a></div></div> -<div class="ttc" id="classprocess_1_1Promise_html_a989b8dfa7eb2633de3f0f25ac2b87943"><div class="ttname"><a href="classprocess_1_1Promise.html#a989b8dfa7eb2633de3f0f25ac2b87943">process::Promise::set</a></div><div class="ttdeci">bool set(const T &_t)</div><div class="ttdef"><b>Definition:</b> future.hpp:827</div></div> +<div class="ttc" id="classprocess_1_1Promise_html_a989b8dfa7eb2633de3f0f25ac2b87943"><div class="ttname"><a href="classprocess_1_1Promise.html#a989b8dfa7eb2633de3f0f25ac2b87943">process::Promise::set</a></div><div class="ttdeci">bool set(const T &_t)</div><div class="ttdef"><b>Definition:</b> future.hpp:830</div></div> <div class="ttc" id="timeout_8hpp_html"><div class="ttname"><a href="timeout_8hpp.html">timeout.hpp</a></div></div> -<div class="ttc" id="classprocess_1_1Future_html_a1b80bf321358be44880d9c6bae5d9a2d"><div class="ttname"><a href="classprocess_1_1Future.html#a1b80bf321358be44880d9c6bae5d9a2d">process::Future::onDiscard</a></div><div class="ttdeci">const Future< T > & onDiscard(DiscardCallback &&callback) const </div><div class="ttdef"><b>Definition:</b> future.hpp:1359</div></div> +<div class="ttc" id="classprocess_1_1Future_html_a1b80bf321358be44880d9c6bae5d9a2d"><div class="ttname"><a href="classprocess_1_1Future.html#a1b80bf321358be44880d9c6bae5d9a2d">process::Future::onDiscard</a></div><div class="ttdeci">const Future< T > & onDiscard(DiscardCallback &&callback) const </div><div class="ttdef"><b>Definition:</b> future.hpp:1366</div></div> <div class="ttc" id="classprocess_1_1ProcessBase_html"><div class="ttname"><a href="classprocess_1_1ProcessBase.html">process::ProcessBase</a></div><div class="ttdef"><b>Definition:</b> process.hpp:72</div></div> <div class="ttc" id="classprocess_1_1RateLimiter_html_aeba2f8234c93c3f34cd6de8fbc595b96"><div class="ttname"><a href="classprocess_1_1RateLimiter.html#aeba2f8234c93c3f34cd6de8fbc595b96">process::RateLimiter::acquire</a></div><div class="ttdeci">virtual Future< Nothing > acquire() const </div><div class="ttdef"><b>Definition:</b> limiter.hpp:182</div></div> <div class="ttc" id="dispatch_8hpp_html"><div class="ttname"><a href="dispatch_8hpp.html">dispatch.hpp</a></div></div> @@ -68,24 +68,24 @@ <div class="ttc" id="classprocess_1_1RateLimiterProcess_html"><div class="ttname"><a href="classprocess_1_1RateLimiterProcess.html">process::RateLimiterProcess</a></div><div class="ttdef"><b>Definition:</b> limiter.hpp:62</div></div> <div class="ttc" id="namespaceprocess_html_acfbc29404bc653268289691b0dd59e22"><div class="ttname"><a href="namespaceprocess.html#acfbc29404bc653268289691b0dd59e22">process::dispatch</a></div><div class="ttdeci">void dispatch(const PID< T > &pid, void(T::*method)())</div><div class="ttdef"><b>Definition:</b> dispatch.hpp:174</div></div> <div class="ttc" id="duration_8hpp_html"><div class="ttname"><a href="duration_8hpp.html">duration.hpp</a></div></div> -<div class="ttc" id="classprocess_1_1Future_html_abc89036db733a417b7b383b091efaf3c"><div class="ttname"><a href="classprocess_1_1Future.html#abc89036db733a417b7b383b091efaf3c">process::Future::isDiscarded</a></div><div class="ttdeci">bool isDiscarded() const </div><div class="ttdef"><b>Definition:</b> future.hpp:1227</div></div> +<div class="ttc" id="classprocess_1_1Future_html_abc89036db733a417b7b383b091efaf3c"><div class="ttname"><a href="classprocess_1_1Future.html#abc89036db733a417b7b383b091efaf3c">process::Future::isDiscarded</a></div><div class="ttdeci">bool isDiscarded() const </div><div class="ttdef"><b>Definition:</b> future.hpp:1234</div></div> <div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div> <div class="ttc" id="classSeconds_html"><div class="ttname"><a href="classSeconds.html">Seconds</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:207</div></div> <div class="ttc" id="classprocess_1_1RateLimiterProcess_html_a7bb926cce009ffbe0de571b37e406578"><div class="ttname"><a href="classprocess_1_1RateLimiterProcess.html#a7bb926cce009ffbe0de571b37e406578">process::RateLimiterProcess::RateLimiterProcess</a></div><div class="ttdeci">RateLimiterProcess(double _permitsPerSecond)</div><div class="ttdef"><b>Definition:</b> limiter.hpp:73</div></div> -<div class="ttc" id="namespaceprocess_1_1internal_html_a58d2ee086b173d21a4fc0550f843dd2e"><div class="ttname"><a href="namespaceprocess_1_1internal.html#a58d2ee086b173d21a4fc0550f843dd2e">process::internal::discard</a></div><div class="ttdeci">void discard(WeakFuture< T > reference)</div><div class="ttdef"><b>Definition:</b> future.hpp:754</div></div> +<div class="ttc" id="namespaceprocess_1_1internal_html_a58d2ee086b173d21a4fc0550f843dd2e"><div class="ttname"><a href="namespaceprocess_1_1internal.html#a58d2ee086b173d21a4fc0550f843dd2e">process::internal::discard</a></div><div class="ttdeci">void discard(WeakFuture< T > reference)</div><div class="ttdef"><b>Definition:</b> future.hpp:757</div></div> <div class="ttc" id="classprocess_1_1RateLimiterProcess_html_a52f385d91c5420d62baef6c6054b408a"><div class="ttname"><a href="classprocess_1_1RateLimiterProcess.html#a52f385d91c5420d62baef6c6054b408a">process::RateLimiterProcess::finalize</a></div><div class="ttdeci">virtual void finalize()</div><div class="ttdoc">Invoked when a process is terminated. </div><div class="ttdef"><b>Definition:</b> limiter.hpp:80</div></div> <div class="ttc" id="classprocess_1_1Promise_html"><div class="ttname"><a href="classprocess_1_1Promise.html">process::Promise< Nothing ></a></div></div> <div class="ttc" id="namespaceprocess_html_ad46335bec9fe626e60003c33e8f13023"><div class="ttname"><a href="namespaceprocess.html#ad46335bec9fe626e60003c33e8f13023">process::delay</a></div><div class="ttdeci">Timer delay(const Duration &duration, const PID< T > &pid, void(T::*method)())</div><div class="ttdef"><b>Definition:</b> delay.hpp:31</div></div> <div class="ttc" id="namespacemesos_1_1internal_1_1log_1_1protocol_html_a3b1f8bd7b18c51af9d1f58842950b545"><div class="ttname"><a href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a3b1f8bd7b18c51af9d1f58842950b545">mesos::internal::log::protocol::promise</a></div><div class="ttdeci">Protocol< PromiseRequest, PromiseResponse > promise</div></div> <div class="ttc" id="classDuration_html_a31ebb8d92dc93914cb830d70753d802b"><div class="ttname"><a href="classDuration.html#a31ebb8d92dc93914cb830d70753d802b">Duration::secs</a></div><div class="ttdeci">double secs() const </div><div class="ttdef"><b>Definition:</b> duration.hpp:49</div></div> -<div class="ttc" id="namespaceprocess_html_adc504b79a0e7ec7c4caa088a937d4feb"><div class="ttname"><a href="namespaceprocess.html#adc504b79a0e7ec7c4caa088a937d4feb">process::discard</a></div><div class="ttdeci">void discard(const std::set< Future< T >> &futures)</div><div class="ttdef"><b>Definition:</b> future.hpp:991</div></div> +<div class="ttc" id="namespaceprocess_html_adc504b79a0e7ec7c4caa088a937d4feb"><div class="ttname"><a href="namespaceprocess.html#adc504b79a0e7ec7c4caa088a937d4feb">process::discard</a></div><div class="ttdeci">void discard(const std::set< Future< T >> &futures)</div><div class="ttdef"><b>Definition:</b> future.hpp:994</div></div> <div class="ttc" id="namespaceprocess_html_a07833fb41a8b0c1f18fa5485ca8c18d4"><div class="ttname"><a href="namespaceprocess.html#a07833fb41a8b0c1f18fa5485ca8c18d4">process::wait</a></div><div class="ttdeci">bool wait(const UPID &pid, const Duration &duration=Seconds(-1))</div><div class="ttdoc">Wait for the process to exit for no more than the specified seconds. </div></div> <div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div> <div class="ttc" id="foreach_8hpp_html"><div class="ttname"><a href="foreach_8hpp.html">foreach.hpp</a></div></div> <div class="ttc" id="classprocess_1_1Timeout_html"><div class="ttname"><a href="classprocess_1_1Timeout.html">process::Timeout</a></div><div class="ttdef"><b>Definition:</b> timeout.hpp:24</div></div> <div class="ttc" id="namespaceprocess_html"><div class="ttname"><a href="namespaceprocess.html">process</a></div><div class="ttdef"><b>Definition:</b> executor.hpp:47</div></div> -<div class="ttc" id="classprocess_1_1Promise_html_a8aef752d6c90cb11e58e3166b7592ef1"><div class="ttname"><a href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">process::Promise::future</a></div><div class="ttdeci">Future< T > future() const </div><div class="ttdef"><b>Definition:</b> future.hpp:913</div></div> -<div class="ttc" id="classprocess_1_1Promise_html_a8f50fcfd7ddb6dd39ec2cd468377cd5d"><div class="ttname"><a href="classprocess_1_1Promise.html#a8f50fcfd7ddb6dd39ec2cd468377cd5d">process::Promise::discard</a></div><div class="ttdeci">bool discard()</div><div class="ttdef"><b>Definition:</b> future.hpp:810</div></div> +<div class="ttc" id="classprocess_1_1Promise_html_a8aef752d6c90cb11e58e3166b7592ef1"><div class="ttname"><a href="classprocess_1_1Promise.html#a8aef752d6c90cb11e58e3166b7592ef1">process::Promise::future</a></div><div class="ttdeci">Future< T > future() const </div><div class="ttdef"><b>Definition:</b> future.hpp:916</div></div> +<div class="ttc" id="classprocess_1_1Promise_html_a8f50fcfd7ddb6dd39ec2cd468377cd5d"><div class="ttname"><a href="classprocess_1_1Promise.html#a8f50fcfd7ddb6dd39ec2cd468377cd5d">process::Promise::discard</a></div><div class="ttdeci">bool discard()</div><div class="ttdef"><b>Definition:</b> future.hpp:813</div></div> <div class="ttc" id="classprocess_1_1RateLimiter_html_a09f3220a7f68fb473745accc16847f45"><div class="ttname"><a href="classprocess_1_1RateLimiter.html#a09f3220a7f68fb473745accc16847f45">process::RateLimiter::~RateLimiter</a></div><div class="ttdeci">virtual ~RateLimiter()</div><div class="ttdef"><b>Definition:</b> limiter.hpp:174</div></div> <div class="ttc" id="id_8hpp_html"><div class="ttname"><a href="id_8hpp.html">id.hpp</a></div></div> <div class="ttc" id="classprocess_1_1Process_html"><div class="ttname"><a href="classprocess_1_1Process.html">process::Process</a></div><div class="ttdef"><b>Definition:</b> process.hpp:501</div></div>
