Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-concurrency
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typon
typon-concurrency
Commits
e284ba05
Commit
e284ba05
authored
May 09, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move scheduler to typon/core
parent
0d0826da
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
79 additions
and
36 deletions
+79
-36
rt/include/typon/core/continuation.hpp
rt/include/typon/core/continuation.hpp
+3
-3
rt/include/typon/core/fork.hpp
rt/include/typon/core/fork.hpp
+7
-7
rt/include/typon/core/future.hpp
rt/include/typon/core/future.hpp
+4
-4
rt/include/typon/core/join.hpp
rt/include/typon/core/join.hpp
+5
-5
rt/include/typon/core/result.hpp
rt/include/typon/core/result.hpp
+3
-3
rt/include/typon/core/root.hpp
rt/include/typon/core/root.hpp
+6
-6
rt/include/typon/core/scheduler.hpp
rt/include/typon/core/scheduler.hpp
+4
-4
rt/include/typon/core/task.hpp
rt/include/typon/core/task.hpp
+4
-4
rt/include/typon/typon.hpp
rt/include/typon/typon.hpp
+43
-0
No files found.
rt/include/typon/continuation.hpp
→
rt/include/typon/co
re/co
ntinuation.hpp
View file @
e284ba05
#ifndef TYPON_CONTINUATION_HPP_INCLUDED
#define TYPON_CONTINUATION_HPP_INCLUDED
#ifndef TYPON_CO
RE_CO
NTINUATION_HPP_INCLUDED
#define TYPON_CO
RE_CO
NTINUATION_HPP_INCLUDED
#include <atomic>
#include <coroutine>
...
...
@@ -8,7 +8,7 @@
#include <limits>
namespace
typon
namespace
typon
::
core
{
struct
coroutine_node
...
...
rt/include/typon/fork.hpp
→
rt/include/typon/
core/
fork.hpp
View file @
e284ba05
#ifndef TYPON_FORK_HPP_INCLUDED
#define TYPON_FORK_HPP_INCLUDED
#ifndef TYPON_
CORE_
FORK_HPP_INCLUDED
#define TYPON_
CORE_
FORK_HPP_INCLUDED
#include <coroutine>
#include <cstdint>
#include <typon/continuation.hpp>
#include <typon/future.hpp>
#include <typon/result.hpp>
#include <typon/scheduler.hpp>
#include <typon/co
re/co
ntinuation.hpp>
#include <typon/
core/
future.hpp>
#include <typon/
core/
result.hpp>
#include <typon/
core/
scheduler.hpp>
namespace
typon
namespace
typon
::
core
{
template
<
typename
T
=
void
>
...
...
rt/include/typon/future.hpp
→
rt/include/typon/
core/
future.hpp
View file @
e284ba05
#ifndef TYPON_FUTURE_HPP_INCLUDED
#define TYPON_FUTURE_HPP_INCLUDED
#ifndef TYPON_
CORE_
FUTURE_HPP_INCLUDED
#define TYPON_
CORE_
FUTURE_HPP_INCLUDED
#include <coroutine>
#include <memory>
...
...
@@ -9,10 +9,10 @@
#include <typon/fundamental/meta.hpp>
#include <typon/fundamental/scope.hpp>
#include <typon/result.hpp>
#include <typon/
core/
result.hpp>
namespace
typon
namespace
typon
::
core
{
template
<
typename
Promise
>
...
...
rt/include/typon/join.hpp
→
rt/include/typon/
core/
join.hpp
View file @
e284ba05
#ifndef TYPON_JOIN_HPP_INCLUDED
#define TYPON_JOIN_HPP_INCLUDED
#ifndef TYPON_
CORE_
JOIN_HPP_INCLUDED
#define TYPON_
CORE_
JOIN_HPP_INCLUDED
#include <coroutine>
#include <utility>
#include <typon/continuation.hpp>
#include <typon/result.hpp>
#include <typon/co
re/co
ntinuation.hpp>
#include <typon/
core/
result.hpp>
namespace
typon
namespace
typon
::
core
{
struct
[[
nodiscard
]]
Sync
{};
...
...
rt/include/typon/result.hpp
→
rt/include/typon/
core/
result.hpp
View file @
e284ba05
#ifndef TYPON_RESULT_HPP_INCLUDED
#define TYPON_RESULT_HPP_INCLUDED
#ifndef TYPON_
CORE_
RESULT_HPP_INCLUDED
#define TYPON_
CORE_
RESULT_HPP_INCLUDED
#include <exception>
...
...
@@ -8,7 +8,7 @@
#include <utility>
namespace
typon
namespace
typon
::
core
{
template
<
typename
T
>
...
...
rt/include/typon/root.hpp
→
rt/include/typon/
core/
root.hpp
View file @
e284ba05
#ifndef TYPON_ROOT_HPP_INCLUDED
#define TYPON_ROOT_HPP_INCLUDED
#ifndef TYPON_
CORE_
ROOT_HPP_INCLUDED
#define TYPON_
CORE_
ROOT_HPP_INCLUDED
#include <atomic>
#include <coroutine>
#include <cstdint>
//
#include <typon/continuation.hpp>
#include <typon/result.hpp>
#include <typon/scheduler.hpp>
#include <typon/co
re/co
ntinuation.hpp>
#include <typon/
core/
result.hpp>
#include <typon/
core/
scheduler.hpp>
namespace
typon
namespace
typon
::
core
{
struct
[[
nodiscard
]]
Root
...
...
rt/include/typon/scheduler.hpp
→
rt/include/typon/
core/
scheduler.hpp
View file @
e284ba05
#ifndef TYPON_SCHEDULER_HPP_INCLUDED
#define TYPON_SCHEDULER_HPP_INCLUDED
#ifndef TYPON_
CORE_
SCHEDULER_HPP_INCLUDED
#define TYPON_
CORE_
SCHEDULER_HPP_INCLUDED
#include <atomic>
#include <cstdint>
...
...
@@ -12,10 +12,10 @@
#include <typon/fundamental/optional.hpp>
#include <typon/fundamental/random.hpp>
#include <typon/continuation.hpp>
#include <typon/co
re/co
ntinuation.hpp>
namespace
typon
namespace
typon
::
core
{
struct
Scheduler
...
...
rt/include/typon/task.hpp
→
rt/include/typon/
core/
task.hpp
View file @
e284ba05
#ifndef TYPON_TASK_HPP_INCLUDED
#define TYPON_TASK_HPP_INCLUDED
#ifndef TYPON_
CORE_
TASK_HPP_INCLUDED
#define TYPON_
CORE_
TASK_HPP_INCLUDED
#include <coroutine>
#include <utility>
#include <typon/result.hpp>
#include <typon/
core/
result.hpp>
namespace
typon
namespace
typon
::
core
{
template
<
typename
T
=
void
>
...
...
rt/include/typon/typon.hpp
0 → 100644
View file @
e284ba05
#ifndef TYPON_TYPON_HPP_INCLUDED
#define TYPON_TYPON_HPP_INCLUDED
#include <utility>
#include <typon/core/fork.hpp>
#include <typon/core/future.hpp>
#include <typon/core/join.hpp>
#include <typon/core/root.hpp>
#include <typon/core/task.hpp>
namespace
typon
{
template
<
typename
T
>
using
Future
=
core
::
Future
<
T
>
;
template
<
typename
T
>
using
Join
=
core
::
Join
<
T
>
;
using
Root
=
core
::
Root
;
using
Sync
=
core
::
Sync
;
template
<
typename
T
>
using
Task
=
core
::
Task
<
T
>
;
template
<
typename
Task
>
core
::
Fork
<
typename
Task
::
promise_type
::
value_type
>
fork
(
Task
task
)
{
co_return
co_await
std
::
move
(
task
);
}
}
#endif // TYPON_TYPON_HPP_INCLUDED
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment