Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
predictable_parallel_patterns
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1b4c5880
authored
May 14, 2019
by
FritzFlorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add further type-safety check to work_stealing_deque.
parent
98ae70bb
Pipeline
#1191
passed with stages
in 3 minutes 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lib/pls/include/pls/internal/data_structures/work_stealing_deque.h
+1
-1
lib/pls/include/pls/internal/data_structures/work_stealing_deque_impl.h
+4
-1
No files found.
lib/pls/include/pls/internal/data_structures/work_stealing_deque.h
View file @
1b4c5880
...
...
@@ -85,7 +85,7 @@ class work_stealing_deque {
std
::
pair
<
work_stealing_deque_item
,
T
>
*
allocate_item
(
const
T
&
new_item
);
template
<
typename
T
>
Item
*
push_tail
(
const
T
&
new_item
);
T
*
push_tail
(
const
T
&
new_item
);
Item
*
pop_tail
();
Item
*
pop_head
();
...
...
lib/pls/include/pls/internal/data_structures/work_stealing_deque_impl.h
View file @
1b4c5880
...
...
@@ -38,7 +38,10 @@ std::pair<work_stealing_deque_item, T> *work_stealing_deque<Item>::allocate_item
template
<
typename
Item
>
template
<
typename
T
>
Item
*
work_stealing_deque
<
Item
>::
push_tail
(
const
T
&
new_item
)
{
T
*
work_stealing_deque
<
Item
>::
push_tail
(
const
T
&
new_item
)
{
static_assert
(
std
::
is_same
<
Item
,
T
>::
value
||
std
::
is_base_of
<
Item
,
T
>::
value
,
"Must only push types of <Item> onto work_stealing_deque<Item>"
);
offset_t
local_tail
=
tail_
;
auto
new_pair
=
allocate_item
(
new_item
);
...
...
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