Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
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
fdbf2f94
authored
9 years ago
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
containers_cpp: fixed codesonar warning
parent
d405a2af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
containers_cpp/include/embb/containers/internal/lock_free_tree_value_pool-inl.h
+3
-1
No files found.
containers_cpp/include/embb/containers/internal/lock_free_tree_value_pool-inl.h
View file @
fdbf2f94
...
@@ -136,8 +136,10 @@ allocate_rec(int node, Type& element) {
...
@@ -136,8 +136,10 @@ allocate_rec(int node, Type& element) {
do
{
do
{
current
=
tree_
[
node
];
current
=
tree_
[
node
];
desired
=
current
-
1
;
desired
=
current
-
1
;
if
(
desired
<
0
)
if
(
desired
<
0
)
{
element
=
Type
();
return
-
1
;
return
-
1
;
}
}
while
(
!
tree_
[
node
].
CompareAndSwap
(
current
,
desired
));
}
while
(
!
tree_
[
node
].
CompareAndSwap
(
current
,
desired
));
int
leftResult
=
allocate_rec
(
GetLeftChildIndex
(
node
),
element
);
int
leftResult
=
allocate_rec
(
GetLeftChildIndex
(
node
),
element
);
...
...
This diff is collapsed.
Click to expand it.
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