Skip to content

Commit

Permalink
Updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarBot committed Feb 8, 2018
1 parent 2a7baa1 commit ce2da59
Show file tree
Hide file tree
Showing 613 changed files with 5,883 additions and 4,452 deletions.
2 changes: 1 addition & 1 deletion docs/html/HPX_DEFINE_COMPONENT_ACTION.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_DEFINE_COMPONENT_ACTION(...)</pre></div>
<div class="refsect1">
<a name="idm139911903543200"></a><h2>Description</h2>
<a name="idm140183639605632"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_DEFINE_COMPONENT_ACTION</em></span> can be used to register a member function of a component as an action type named <span class="emphasis"><em>action_type</em></span>.</p>
<p>The parameter <span class="emphasis"><em>component</em></span> is the type of the component exposing the member function <span class="emphasis"><em>func</em></span> which should be associated with the newly defined action type. The parameter <code class="computeroutput">action_type</code> is the name of the action type to register with HPX.</p>
<p><b>Example:&#160;</b></p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_DEFINE_PLAIN_ACTION.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_DEFINE_PLAIN_ACTION(...)</pre></div>
<div class="refsect1">
<a name="idm139911903483184"></a><h2>Description</h2>
<a name="idm140183639545424"></a><h2>Description</h2>
<p><b>Example:&#160;</b></p>
<p>
</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_PLAIN_ACTION.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_PLAIN_ACTION(...)</pre></div>
<div class="refsect1">
<a name="idm139911903446336"></a><h2>Description</h2>
<a name="idm140183639508576"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_PLAIN_ACTION</em></span> can be used to define a plain action (e.g. an action encapsulating a global or free function) based on the given function <span class="emphasis"><em>func</em></span>. It defines the action type <span class="emphasis"><em>name</em></span> representing the given function. This macro additionally registers the newly define action type with HPX.</p>
<p>The parameter <code class="computeroutput">func</code> is a global or free (non-member) function which should be encapsulated into a plain action. The parameter <code class="computeroutput">name</code> is the name of the action type defined by this macro.</p>
<p><b>Example:&#160;</b></p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_PLAIN_ACTION_ID.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_PLAIN_ACTION_ID(func, name, id)</pre></div>
<div class="refsect1">
<a name="idm139911903407344"></a><h2>Description</h2>
<a name="idm140183639469648"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_PLAIN_ACTION_ID</em></span> can be used to define a plain action (e.g. an action encapsulating a global or free function) based on the given function <span class="emphasis"><em>func</em></span>. It defines the action type <span class="emphasis"><em>actionname</em></span> representing the given function. The parameter <span class="emphasis"><em>actionid</em></span> </p>
<p>The parameter <span class="emphasis"><em>actionid</em></span> specifies an unique integer value which will be used to represent the action during serialization.</p>
<p>The parameter <code class="computeroutput">func</code> is a global or free (non-member) function which should be encapsulated into a plain action. The parameter <code class="computeroutput">name</code> is the name of the action type defined by this macro.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_REGISTER_ACTION.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_REGISTER_ACTION(...)</pre></div>
<div class="refsect1">
<a name="idm139911903568928"></a><h2>Description</h2>
<a name="idm140183639631344"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_REGISTER_ACTION</em></span> can be used to define all the boilerplate code which is required for proper functioning of component actions in the context of HPX.</p>
<p>The parameter <span class="emphasis"><em>action</em></span> is the type of the action to define the boilerplate for.</p>
<p>This macro can be invoked with an optional second parameter. This parameter specifies a unique name of the action to be used for serialization purposes. The second parameter has to be specified if the first parameter is not usable as a plain (non-qualified) C++ identifier, i.e. the first parameter contains special characters which cannot be part of a C++ identifier, such as '&lt;', '&gt;', or ':'.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_REGISTER_ACTION_DECLARATION.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_REGISTER_ACTION_DECLARATION(...)</pre></div>
<div class="refsect1">
<a name="idm139911903628448"></a><h2>Description</h2>
<a name="idm140183639690848"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_REGISTER_ACTION_DECLARATION</em></span> can be used to declare all the boilerplate code which is required for proper functioning of component actions in the context of HPX.</p>
<p>The parameter <span class="emphasis"><em>action</em></span> is the type of the action to declare the boilerplate for.</p>
<p>This macro can be invoked with an optional second parameter. This parameter specifies a unique name of the action to be used for serialization purposes. The second parameter has to be specified if the first parameter is not usable as a plain (non-qualified) C++ identifier, i.e. the first parameter contains special characters which cannot be part of a C++ identifier, such as '&lt;', '&gt;', or ':'.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_REGISTER_ACTION_ID.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_REGISTER_ACTION_ID(action, actionname, actionid)</pre></div>
<div class="refsect1">
<a name="idm139911903558416"></a><h2>Description</h2>
<a name="idm140183639620848"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_REGISTER_ACTION</em></span> can be used to define all the boilerplate code which is required for proper functioning of component actions in the context of HPX.</p>
<p>The parameter <span class="emphasis"><em>action</em></span> is the type of the action to define the boilerplate for.</p>
<p>The parameter <span class="emphasis"><em>actionname</em></span> specifies an unique name of the action to be used for serialization purposes. The second parameter has to be usable as a plain (non-qualified) C++ identifier, it should not contain special characters which cannot be part of a C++ identifier, such as '&lt;', '&gt;', or ':'.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_REGISTER_COMPONENT.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_REGISTER_COMPONENT(type, name, mode)</pre></div>
<div class="refsect1">
<a name="idm139911902292864"></a><h2>Description</h2>
<a name="idm140183638353872"></a><h2>Description</h2>
<p>This macro is used create and to register a minimal component factory for a component type which allows it to be remotely created using the <span class="emphasis"><em>hpx::new_&lt;&gt;</em></span> function.</p>
<p>This macro can be invoked with one, two or three arguments</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_REGISTER_GATHER.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_REGISTER_GATHER(type, name)</pre></div>
<div class="refsect1">
<a name="idm139911921195616"></a><h2>Description</h2>
<a name="idm140183657209296"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_REGISTER_GATHER</em></span> can be used to define all facilities necessary for a (possibly remote) gather operation.</p>
<p>The parameter <span class="emphasis"><em>type</em></span> specifies for which data type the gather operations should be enabled.</p>
<p>The (optional) parameter <span class="emphasis"><em>name</em></span> should be a unique C-style identifier which will be internally used to identify a particular gather operation. If this defaults to <span class="emphasis"><em>&lt;type&gt;_gather</em></span> if not specified.</p>
Expand Down
8 changes: 4 additions & 4 deletions docs/html/HPX_REGISTER_GATHER_DECLARATION.html
Expand Up @@ -6,14 +6,14 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="HPX 1.1.0">
<link rel="up" href="header/hpx/lcos/gather_hpp.html" title="Header &lt;hpx/lcos/gather.hpp&gt;">
<link rel="prev" href="hpx/lcos/gather__idm140093681904080.html" title="Function template gather_there">
<link rel="prev" href="hpx/lcos/gather__idm140236629393248.html" title="Function template gather_there">
<link rel="next" href="HPX_REGISTER_GATHER.html" title="Macro HPX_REGISTER_GATHER">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="HPX" width="531" height="105" src="images/hpx_1_1_0_draft.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="hpx/lcos/gather__idm140093681904080.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/hpx/lcos/gather_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="HPX_REGISTER_GATHER.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="hpx/lcos/gather__idm140236629393248.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/hpx/lcos/gather_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="HPX_REGISTER_GATHER.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="HPX_REGISTER_GATHER_DECLARATION"></a><div class="titlepage"></div>
Expand All @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_REGISTER_GATHER_DECLARATION(type, name)</pre></div>
<div class="refsect1">
<a name="idm139911921205808"></a><h2>Description</h2>
<a name="idm140183657219520"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_REGISTER_GATHER_DECLARATION</em></span> can be used to declare all facilities necessary for a (possibly remote) gather operation.</p>
<p>The parameter <span class="emphasis"><em>type</em></span> specifies for which data type the gather operations should be enabled.</p>
<p>The (optional) parameter <span class="emphasis"><em>name</em></span> should be a unique C-style identifier which will be internally used to identify a particular gather operation. If this defaults to <span class="emphasis"><em>&lt;type&gt;_gather</em></span> if not specified.</p>
Expand All @@ -53,7 +53,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="hpx/lcos/gather__idm140093681904080.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/hpx/lcos/gather_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="HPX_REGISTER_GATHER.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="hpx/lcos/gather__idm140236629393248.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/hpx/lcos/gather_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="HPX_REGISTER_GATHER.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/html/HPX_THROWS_IF.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_THROWS_IF(ec, errcode, f, msg)</pre></div>
<div class="refsect1">
<a name="idm139911897102592"></a><h2>Description</h2>
<a name="idm140183632830848"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_THROWS_IF</em></span> can be used to either throw a <span class="emphasis"><em><a class="link" href="hpx/exception.html" title="Class exception">hpx::exception</a></em></span> or to initialize a <span class="emphasis"><em><a class="link" href="hpx/error_code.html" title="Class error_code">hpx::error_code</a></em></span> from the given parameters. If &amp;ec == &amp;hpx::throws, the semantics of this macro are equivalent to <span class="emphasis"><em>HPX_THROW_EXCEPTION</em></span>. If &amp;ec != &amp;hpx::throws, the <span class="emphasis"><em><a class="link" href="hpx/error_code.html" title="Class error_code">hpx::error_code</a></em></span> instance <code class="computeroutput">ec</code> is initialized instead.</p>
<p>The parameter <code class="computeroutput">errcode</code> holds the hpx::error code from which the new exception should be initialized. The parameter <code class="computeroutput">f</code> is expected to hold the name of the function exception is thrown from and the parameter <code class="computeroutput">msg</code> holds the error message the new exception should encapsulate. </p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/HPX_THROW_EXCEPTION.html
Expand Up @@ -26,7 +26,7 @@ <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="re

</span>HPX_THROW_EXCEPTION(errcode, f, msg)</pre></div>
<div class="refsect1">
<a name="idm139911897132432"></a><h2>Description</h2>
<a name="idm140183632860688"></a><h2>Description</h2>
<p>The macro <span class="emphasis"><em>HPX_THROW_EXCEPTION</em></span> can be used to throw a <a class="link" href="hpx/exception.html" title="Class exception">hpx::exception</a>. The purpose of this macro is to prepend the source file name and line number of the position where the exception is thrown to the error message. Moreover, this associates additional diagnostic information with the exception, such as file name and line number, locality id and thread id, and stack backtrace from the point where the exception was thrown.</p>
<p>The parameter <code class="computeroutput">errcode</code> holds the hpx::error code the new exception should encapsulate. The parameter <code class="computeroutput">f</code> is expected to hold the name of the function exception is thrown from and the parameter <code class="computeroutput">msg</code> holds the error message the new exception should encapsulate.</p>
<p><b>Example:&#160;</b></p>
Expand Down
57 changes: 57 additions & 0 deletions docs/html/code/hpx/hpx_suspend.hpp
@@ -0,0 +1,57 @@
// Copyright (c) 2018 Mikael Simberg
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

/// \file hpx_finalize.hpp

#ifndef HPX_HPX_SUSPEND_HPP
#define HPX_HPX_SUSPEND_HPP

#include <hpx/exception_fwd.hpp>

/// \namespace hpx
namespace hpx
{
/// \brief Suspend the runtime system.
///
/// The function \a hpx::suspend is used to suspend the HPX runtime system.
/// It can only be used when running HPX on a single locality. It will block
/// waiting for all thread pools to be empty. This function only be called
/// when the runtime is running, or already suspended in which case this
/// function will do nothing.
///
/// \param ec [in,out] this represents the error status on exit, if this
/// is pre-initialized to \a hpx#throws the function will throw
/// on error instead.
///
/// \returns This function will always return zero.
///
/// \note As long as \a ec is not pre-initialized to \a hpx::throws this
/// function doesn't throw but returns the result code using the
/// parameter \a ec. Otherwise it throws an instance of
/// hpx::exception.
HPX_EXPORT int suspend(error_code& ec = throws);

/// \brief Resume the HPX runtime system.
///
/// The function \a hpx::resume is used to resume the HPX runtime system. It
/// can only be used when running HPX on a single locality. It will block
/// waiting for all thread pools to be resumed. This function only be called
/// when the runtime suspended, or already running in which case this
/// function will do nothing.
///
/// \param ec [in,out] this represents the error status on exit, if this
/// is pre-initialized to \a hpx#throws the function will throw
/// on error instead.
///
/// \returns This function will always return zero.
///
/// \note As long as \a ec is not pre-initialized to \a hpx::throws this
/// function doesn't throw but returns the result code using the
/// parameter \a ec. Otherwise it throws an instance of
/// hpx::exception.
HPX_EXPORT int resume(error_code& ec = throws);
}

#endif /*HPX_HPX_SUSPEND_HPP*/
5 changes: 2 additions & 3 deletions docs/html/code/hpx/runtime/threads/thread_helpers.hpp
Expand Up @@ -454,7 +454,7 @@ namespace hpx { namespace threads
/// If this function is called while the thread-manager is not
/// running, it will throw an \a hpx#exception with an error code of
/// \a hpx#invalid_status.
HPX_EXPORT threads::detail::thread_pool_base*
HPX_EXPORT threads::thread_pool_base*
get_pool(thread_id_type const& id, error_code& ec = throws);

/// \cond NOINTERNAL
Expand Down Expand Up @@ -673,8 +673,7 @@ namespace hpx { namespace this_thread
/// If this function is called while the thread-manager is not
/// running, it will throw an \a hpx#exception with an error code of
/// \a hpx#invalid_status.
HPX_EXPORT threads::detail::thread_pool_base*
get_pool(error_code& ec = throws);
HPX_EXPORT threads::thread_pool_base* get_pool(error_code& ec = throws);

/// \cond NOINTERNAL
// returns the remaining available stack space
Expand Down

0 comments on commit ce2da59

Please sign in to comment.