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
b7119d26
Commit
b7119d26
authored
Jun 16, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Scheduler::resume into Scheduler::enable
parent
b8212774
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
rt/include/typon/core/future.hpp
rt/include/typon/core/future.hpp
+8
-8
rt/include/typon/core/scheduler.hpp
rt/include/typon/core/scheduler.hpp
+1
-1
No files found.
rt/include/typon/core/future.hpp
View file @
b7119d26
...
...
@@ -45,7 +45,7 @@ namespace typon
auto
state
=
_state
.
exchange
(
ready
,
std
::
memory_order_acq_rel
);
if
(
state
!=
no_waiter
)
{
Scheduler
::
resum
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
Scheduler
::
enabl
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
}
}
...
...
@@ -60,7 +60,7 @@ namespace typon
auto
state
=
reinterpret_cast
<
std
::
uintptr_t
>
(
deque
);
if
(
_state
.
exchange
(
state
,
std
::
memory_order_acq_rel
)
==
ready
)
{
Scheduler
::
resum
e
(
deque
);
Scheduler
::
enabl
e
(
deque
);
}
}
...
...
@@ -92,7 +92,7 @@ namespace typon
auto
state
=
_state
.
exchange
(
ready
,
std
::
memory_order_acq_rel
);
if
(
state
!=
no_waiter
)
{
Scheduler
::
resum
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
Scheduler
::
enabl
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
}
}
...
...
@@ -107,7 +107,7 @@ namespace typon
auto
state
=
reinterpret_cast
<
std
::
uintptr_t
>
(
deque
);
if
(
_state
.
exchange
(
state
,
std
::
memory_order_acq_rel
)
==
ready
)
{
Scheduler
::
resum
e
(
deque
);
Scheduler
::
enabl
e
(
deque
);
}
}
...
...
@@ -133,7 +133,7 @@ namespace typon
auto
state
=
_state
.
exchange
(
ready
,
std
::
memory_order_acq_rel
);
if
(
state
!=
no_waiter
)
{
Scheduler
::
resum
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
Scheduler
::
enabl
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
}
}
...
...
@@ -148,7 +148,7 @@ namespace typon
auto
state
=
reinterpret_cast
<
std
::
uintptr_t
>
(
deque
);
if
(
_state
.
exchange
(
state
,
std
::
memory_order_acq_rel
)
==
ready
)
{
Scheduler
::
resum
e
(
deque
);
Scheduler
::
enabl
e
(
deque
);
}
}
...
...
@@ -172,7 +172,7 @@ namespace typon
auto
state
=
_state
.
exchange
(
ready
,
std
::
memory_order_acq_rel
);
if
(
state
!=
no_waiter
)
{
Scheduler
::
resum
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
Scheduler
::
enabl
e
(
reinterpret_cast
<
WorkDeque
*>
(
state
));
}
}
...
...
@@ -187,7 +187,7 @@ namespace typon
auto
state
=
reinterpret_cast
<
std
::
uintptr_t
>
(
deque
);
if
(
_state
.
exchange
(
state
,
std
::
memory_order_acq_rel
)
==
ready
)
{
Scheduler
::
resum
e
(
deque
);
Scheduler
::
enabl
e
(
deque
);
}
}
...
...
rt/include/typon/core/scheduler.hpp
View file @
b7119d26
...
...
@@ -84,7 +84,7 @@ namespace typon
return
deque
;
}
static
void
resum
e
(
WorkDeque
*
deque
)
noexcept
static
void
enabl
e
(
WorkDeque
*
deque
)
noexcept
{
deque
->
_resumable
.
store
(
true
);
get
().
_notifyer
.
notify_one
();
...
...
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