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
334a11e8
authored
Feb 11, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
containers_cpp: added missing PT_ASSERT calls in hazard_pointer_test
parent
2f7e8112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
containers_cpp/test/hazard_pointer_test.cc
+4
-2
No files found.
containers_cpp/test/hazard_pointer_test.cc
View file @
334a11e8
...
@@ -211,7 +211,8 @@ void HazardPointerTest2::DeletePointerCallback(int* to_delete) {
...
@@ -211,7 +211,8 @@ void HazardPointerTest2::DeletePointerCallback(int* to_delete) {
bool
HazardPointerTest2
::
SetRelativeGuards
()
{
bool
HazardPointerTest2
::
SetRelativeGuards
()
{
unsigned
int
thread_index
;
unsigned
int
thread_index
;
embb_internal_thread_index
(
&
thread_index
);
int
result
=
embb_internal_thread_index
(
&
thread_index
);
PT_ASSERT
(
EMBB_SUCCESS
==
result
);
unsigned
int
my_begin
=
guards_per_phread_count_
*
thread_index
;
unsigned
int
my_begin
=
guards_per_phread_count_
*
thread_index
;
int
guard_number
=
0
;
int
guard_number
=
0
;
...
@@ -451,7 +452,8 @@ void HazardPointerTest2::HazardPointerTest2Post() {
...
@@ -451,7 +452,8 @@ void HazardPointerTest2::HazardPointerTest2Post() {
void
HazardPointerTest2
::
HazardPointerTest2ThreadMethod
()
{
void
HazardPointerTest2
::
HazardPointerTest2ThreadMethod
()
{
for
(;;)
{
for
(;;)
{
unsigned
int
thread_index
;
unsigned
int
thread_index
;
embb_internal_thread_index
(
&
thread_index
);
int
result
=
embb_internal_thread_index
(
&
thread_index
);
PT_ASSERT
(
EMBB_SUCCESS
==
result
);
if
(
thread_index
==
current_master_
)
{
if
(
thread_index
==
current_master_
)
{
HazardPointerTest2Master
();
HazardPointerTest2Master
();
...
...
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