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
32cccaa4
authored
Feb 24, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base_cpp: added test for Thread::ID
parent
9f3fe0ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
base_cpp/test/thread_test.cc
+3
-0
No files found.
base_cpp/test/thread_test.cc
View file @
32cccaa4
...
@@ -61,6 +61,9 @@ void ThreadTest::TestStartingAndJoining() {
...
@@ -61,6 +61,9 @@ void ThreadTest::TestStartingAndJoining() {
embb
::
base
::
Thread
thread2
(
ThreadTest
::
StaticThreadStartArg1
,
arg1
);
embb
::
base
::
Thread
thread2
(
ThreadTest
::
StaticThreadStartArg1
,
arg1
);
double
arg2
=
3.0
;
double
arg2
=
3.0
;
embb
::
base
::
Thread
thread3
(
ThreadTest
::
StaticThreadStartArg2
,
arg1
,
arg2
);
embb
::
base
::
Thread
thread3
(
ThreadTest
::
StaticThreadStartArg2
,
arg1
,
arg2
);
embb
::
base
::
Thread
::
ID
thread3id
;
thread3id
=
thread3
.
GetID
();
PT_EXPECT_EQ
(
thread3id
,
thread3
.
GetID
());
// Non-static member start methods with functor
// Non-static member start methods with functor
MemberStart
<
void
(
ThreadTest
::*
)()
>
start4
(
&
ThreadTest
::
ThreadStart
,
this
);
MemberStart
<
void
(
ThreadTest
::*
)()
>
start4
(
&
ThreadTest
::
ThreadStart
,
this
);
...
...
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