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
b8212774
Commit
b8212774
authored
Jun 16, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Scheduler::insert into Scheduler::schedule
parent
1cb8f355
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
rt/include/typon/core/root.hpp
rt/include/typon/core/root.hpp
+1
-1
rt/include/typon/core/scheduler.hpp
rt/include/typon/core/scheduler.hpp
+1
-1
No files found.
rt/include/typon/core/root.hpp
View file @
b8212774
...
@@ -63,7 +63,7 @@ namespace typon
...
@@ -63,7 +63,7 @@ namespace typon
void
call
()
&&
void
call
()
&&
{
{
Scheduler
::
insert
(
_coroutine
);
Scheduler
::
schedule
(
_coroutine
);
_coroutine
.
promise
().
_count
.
wait
(
0
);
_coroutine
.
promise
().
_count
.
wait
(
0
);
_coroutine
.
promise
().
get
();
_coroutine
.
promise
().
get
();
}
}
...
...
rt/include/typon/core/scheduler.hpp
View file @
b8212774
...
@@ -37,7 +37,7 @@ namespace typon
...
@@ -37,7 +37,7 @@ namespace typon
return
scheduler
;
return
scheduler
;
}
}
static
void
insert
(
std
::
coroutine_handle
<>
task
)
noexcept
static
void
schedule
(
std
::
coroutine_handle
<>
task
)
noexcept
{
{
Scheduler
&
scheduler
=
get
();
Scheduler
&
scheduler
=
get
();
uint
id
=
fdt
::
random
::
random
()
%
scheduler
.
_concurrency
;
uint
id
=
fdt
::
random
::
random
()
%
scheduler
.
_concurrency
;
...
...
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