-
-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into suspend-documentation
- Loading branch information
Showing
44 changed files
with
1,769 additions
and
2,233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) 2007-2018 Hartmut Kaiser | ||
// Copyright (c) 2011 Bryce Lelbach | ||
// | ||
// 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) | ||
|
||
#if !defined(HPX_CONFIG_DEBUG_HPP) | ||
#define HPX_CONFIG_DEBUG_HPP | ||
|
||
// Make sure DEBUG macro is defined consistently across platforms | ||
#if defined(_DEBUG) && !defined(DEBUG) | ||
# define DEBUG | ||
#endif | ||
|
||
#if defined(DEBUG) && !defined(HPX_DEBUG) | ||
# define HPX_DEBUG | ||
#endif | ||
|
||
#if defined(HPX_DEBUG) | ||
# define HPX_BUILD_TYPE debug | ||
#else | ||
# define HPX_BUILD_TYPE release | ||
#endif | ||
|
||
#endif |
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,71 @@ | ||
// Copyright (c) 2007-2018 Hartmut Kaiser | ||
// Copyright (c) 2018 Thomas Heller | ||
// Copyright (c) 2011 Bryce Lelbach | ||
// | ||
// 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) | ||
|
||
#ifndef HPX_CONFIG_THREADS_STACK_HPP | ||
#define HPX_CONFIG_THREADS_STACK_HPP | ||
|
||
#include <hpx/config/debug.hpp> | ||
#include <hpx/config/defines.hpp> | ||
#include <hpx/config/compiler_specific.hpp> | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#if !defined(HPX_THREADS_STACK_OVERHEAD) | ||
# if defined(HPX_DEBUG) | ||
# if defined(HPX_GCC_VERSION) | ||
# define HPX_THREADS_STACK_OVERHEAD 0x3000 | ||
# else | ||
# define HPX_THREADS_STACK_OVERHEAD 0x2800 | ||
# endif | ||
# else | ||
# if defined(HPX_INTEL_VERSION) | ||
# define HPX_THREADS_STACK_OVERHEAD 0x2800 | ||
# else | ||
# if defined(HPX_GCC_VERSION) && HPX_GCC_VERSION >= 40900 && HPX_GCC_VERSION < 50000 | ||
# define HPX_THREADS_STACK_OVERHEAD 0x1000 | ||
# else | ||
# define HPX_THREADS_STACK_OVERHEAD 0x800 | ||
# endif | ||
# endif | ||
# endif | ||
#endif | ||
|
||
#if !defined(HPX_SMALL_STACK_SIZE) | ||
# if defined(__has_feature) | ||
# if __has_feature(address_sanitizer) | ||
# define HPX_SMALL_STACK_SIZE 0x20000 // 128kByte | ||
# endif | ||
# endif | ||
#endif | ||
|
||
#if !defined(HPX_SMALL_STACK_SIZE) | ||
# if defined(HPX_WINDOWS) && !defined(HPX_HAVE_GENERIC_CONTEXT_COROUTINES) | ||
# define HPX_SMALL_STACK_SIZE 0x4000 // 16kByte | ||
# else | ||
# if defined(HPX_DEBUG) | ||
# define HPX_SMALL_STACK_SIZE 0x20000 // 128kByte | ||
# else | ||
# if defined(__powerpc__) || defined(__INTEL_COMPILER) | ||
# define HPX_SMALL_STACK_SIZE 0x20000 // 128kByte | ||
# else | ||
# define HPX_SMALL_STACK_SIZE 0x10000 // 64kByte | ||
# endif | ||
# endif | ||
# endif | ||
#endif | ||
|
||
#if !defined(HPX_MEDIUM_STACK_SIZE) | ||
# define HPX_MEDIUM_STACK_SIZE 0x0020000 // 128kByte | ||
#endif | ||
#if !defined(HPX_LARGE_STACK_SIZE) | ||
# define HPX_LARGE_STACK_SIZE 0x0200000 // 2MByte | ||
#endif | ||
#if !defined(HPX_HUGE_STACK_SIZE) | ||
# define HPX_HUGE_STACK_SIZE 0x2000000 // 32MByte | ||
#endif | ||
|
||
#endif |
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.