Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
cython-plus
typon
Commits
214f2356
Commit
214f2356
authored
Jun 16, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Scheduler::insert into Scheduler::schedule
parent
4954832c
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 @
214f2356
...
...
@@ -63,7 +63,7 @@ namespace typon
void
call
()
&&
{
Scheduler
::
insert
(
_coroutine
);
Scheduler
::
schedule
(
_coroutine
);
_coroutine
.
promise
().
_count
.
wait
(
0
);
_coroutine
.
promise
().
get
();
}
...
...
rt/include/typon/core/scheduler.hpp
View file @
214f2356
...
...
@@ -37,7 +37,7 @@ namespace typon
return
scheduler
;
}
static
void
insert
(
std
::
coroutine_handle
<>
task
)
noexcept
static
void
schedule
(
std
::
coroutine_handle
<>
task
)
noexcept
{
Scheduler
&
scheduler
=
get
();
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