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
5f59e812
authored
9 years ago
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dataflow_cpp: fixed codesonar warning
parent
fdbf2f94
Hide 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_stack-inl.h
+3
-1
No files found.
containers_cpp/include/embb/containers/internal/lock_free_stack-inl.h
View file @
5f59e812
...
...
@@ -123,8 +123,10 @@ bool LockFreeStack< Type, ValuePool >::TryPop(Type & element) {
top_cached
=
top
;
// Stack empty, cannot pop
if
(
top_cached
==
NULL
)
if
(
top_cached
==
NULL
)
{
element
=
Type
();
return
false
;
}
// Guard top_cached
hazardPointer
.
Guard
(
0
,
top_cached
);
...
...
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