Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
StellarBot
committed
Feb 8, 2018
1 parent
2a7baa1
commit ce2da59
Showing
613 changed files
with
5,883 additions
and
4,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.