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
a3e8042a
Commit
a3e8042a
authored
May 05, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename StealingDeque into Deque
parent
0ae0823a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
rt/include/typon/deque.hpp
rt/include/typon/deque.hpp
+3
-9
rt/include/typon/scheduler.hpp
rt/include/typon/scheduler.hpp
+1
-1
No files found.
rt/include/typon/deque.hpp
View file @
a3e8042a
...
...
@@ -121,7 +121,7 @@ namespace typon::rt
template
<
typename
T
>
struct
Stealing
Deque
struct
Deque
{
using
u8
=
typename
RingBuffer
<
T
>::
u8
;
using
u64
=
typename
RingBuffer
<
T
>::
u64
;
...
...
@@ -133,11 +133,11 @@ namespace typon::rt
std
::
atomic
<
u64
>
_bottom
{
1
};
std
::
atomic
<
Array
*>
_array
;
Stealing
Deque
(
u8
bits
=
2
)
noexcept
Deque
(
u8
bits
=
2
)
noexcept
:
_array
(
new
Array
(
bits
))
{}
~
Stealing
Deque
()
~
Deque
()
{
delete
_array
;
}
...
...
@@ -205,11 +205,5 @@ namespace typon::rt
}
namespace
riften
::
detail
{
template
<
typename
T
>
using
Deque
=
typon
::
rt
::
StealingDeque
<
T
>
;
}
#endif // TYPON_DEQUE_HPP_INCLUDED
rt/include/typon/scheduler.hpp
View file @
a3e8042a
...
...
@@ -20,7 +20,7 @@ namespace typon::rt
{
using
uint
=
unsigned
int
;
using
Task
=
Optional
<
continuation_handle
>
;
using
Deque
=
Stealing
Deque
<
continuation_handle
>
;
using
Deque
=
Deque
<
continuation_handle
>
;
static
inline
thread_local
uint
thread_id
;
...
...
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