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
63da4fe7
authored
Oct 09, 2014
by
Christian Kern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cpplint warnings
parent
03e4f890
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h
+1
-2
containers_cpp/include/embb/containers/internal/hazard_pointer.h
+4
-3
scripts/run_cpplint.sh
+3
-0
No files found.
containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h
View file @
63da4fe7
...
@@ -271,8 +271,7 @@ Scan(HazardPointerThreadEntry_t* currentHazardPointerEntry) {
...
@@ -271,8 +271,7 @@ Scan(HazardPointerThreadEntry_t* currentHazardPointerEntry) {
// a bug... this assertions checks that
// a bug... this assertions checks that
int
expected
=
-
1
;
int
expected
=
-
1
;
if
(
!
currentHazardPointerEntry
->
GetScanningThread
().
CompareAndSwap
(
if
(
!
currentHazardPointerEntry
->
GetScanningThread
().
CompareAndSwap
(
expected
,
static_cast
<
int
>
(
GetCurrentThreadIndex
())))
expected
,
static_cast
<
int
>
(
GetCurrentThreadIndex
())))
{
{
assert
(
false
);
assert
(
false
);
}
}
#endif
#endif
...
...
containers_cpp/include/embb/containers/internal/hazard_pointer.h
View file @
63da4fe7
...
@@ -169,16 +169,17 @@ class FixedSizeList {
...
@@ -169,16 +169,17 @@ class FixedSizeList {
*/
*/
template
<
typename
GuardType
>
template
<
typename
GuardType
>
class
HazardPointerThreadEntry
{
class
HazardPointerThreadEntry
{
#ifdef EMBB_DEBUG
#ifdef EMBB_DEBUG
public
:
public
:
embb
::
base
::
Atomic
<
int
>&
GetScanningThread
()
embb
::
base
::
Atomic
<
int
>&
GetScanningThread
()
{
{
return
who_is_scanning
;
return
who_is_scanning
;
}
}
private
:
private
:
embb
::
base
::
Atomic
<
int
>
who_is_scanning
;
embb
::
base
::
Atomic
<
int
>
who_is_scanning
;
#endif
#endif
private
:
private
:
/**
/**
* Value of the undefined guard (means that no guard is set).
* Value of the undefined guard (means that no guard is set).
...
...
scripts/run_cpplint.sh
View file @
63da4fe7
...
@@ -110,6 +110,9 @@ do
...
@@ -110,6 +110,9 @@ do
if
[[
$file
==
*
atomic_arithmetic.h
]]
;
then
if
[[
$file
==
*
atomic_arithmetic.h
]]
;
then
current_rules+
=
",-readability/function"
# All parameters should be named in a function
current_rules+
=
",-readability/function"
# All parameters should be named in a function
fi
fi
if
[[
$file
==
*
object_pool-inl.h
]]
;
then
current_rules+
=
",-readability/function"
# All parameters should be named in a function (triggers error with clang if named...)
fi
for
filename
in
"
${
RAND_FILES
[@]
}
"
;
do
for
filename
in
"
${
RAND_FILES
[@]
}
"
;
do
if
[[
$file
=
~
$filename
]]
;
then
if
[[
$file
=
~
$filename
]]
;
then
current_rules+
=
",-runtime/threadsafe_fn"
# These tests are allowed to use the thread unsafe rand()
current_rules+
=
",-runtime/threadsafe_fn"
# These tests are allowed to use the thread unsafe rand()
...
...
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