-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* addition of task objects * result refactor * executor refactor + optimizations * tests were completly re-written * move to MSVC 18.6.2 and clang 11 * move to standard coroutines on MSVC * awaitables are uncopiable and unmovable * when timer is cancelled/destructed, spawned tasks that are not yet executed are cancelled. Note: CI/CD fail as Clang 11 is still not supported on Github Actions. Tests were run locally on Window, Linux and Mac. Note: This version breaks ABI if applications implemented their own executors.
- Loading branch information
1 parent
547c557
commit 0ef82b4
Showing
80 changed files
with
6,139 additions
and
3,258 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
|
||
# Others | ||
.vs | ||
CMakeSettings.json | ||
|
||
# Specific directories | ||
build/ | ||
|
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,30 @@ | ||
#ifndef CONCURRENCPP_COROUTINE_H | ||
#define CONCURRENCPP_COROUTINE_H | ||
|
||
#include "../platform_defs.h" | ||
|
||
#ifdef CRCPP_MSVC_COMPILER | ||
|
||
# include <coroutine> | ||
|
||
namespace concurrencpp::details { | ||
template<class promise_type> | ||
using coroutine_handle = std::coroutine_handle<promise_type>; | ||
using suspend_never = std::suspend_never; | ||
using suspend_always = std::suspend_always; | ||
} // namespace concurrencpp::details | ||
|
||
#elif defined(CRCPP_CLANG_COMPILER) | ||
|
||
# include <experimental/coroutine> | ||
|
||
namespace concurrencpp::details { | ||
template<class promise_type> | ||
using coroutine_handle = std::experimental::coroutine_handle<promise_type>; | ||
using suspend_never = std::experimental::suspend_never; | ||
using suspend_always = std::experimental::suspend_always; | ||
} // namespace concurrencpp::details | ||
|
||
#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
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
Oops, something went wrong.