Commit 32cccaa4 by Marcus Winter

base_cpp: added test for Thread::ID

parent 9f3fe0ad
......@@ -61,6 +61,9 @@ void ThreadTest::TestStartingAndJoining() {
embb::base::Thread thread2(ThreadTest::StaticThreadStartArg1, arg1);
double arg2 = 3.0;
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
MemberStart<void(ThreadTest::*)()> start4(&ThreadTest::ThreadStart, this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment