Create os specific thread implementation

Change-Id: I267d6cb021a75713c28a7bbf29384da13d2a7217
This commit is contained in:
Mateusz Jablonski
2018-05-22 17:23:39 +02:00
committed by sys_ocldev
parent c104db1d5e
commit 09e4dab4f6
19 changed files with 256 additions and 59 deletions

View File

@@ -221,7 +221,7 @@ TEST_F(AsyncEventsHandlerTests, givenEventsNotHandledByHandlderWhenAsyncExecutio
EXPECT_EQ(3, event1->getRefInternalCount());
EXPECT_EQ(3, event2->getRefInternalCount());
handler->allowAsyncProcess.store(false);
handler->asyncProcess(); // enter and exit because of allowAsyncProcess == false
MockHandler::asyncProcess(reinterpret_cast<void *>(handler.get())); // enter and exit because of allowAsyncProcess == false
EXPECT_EQ(2, event1->getRefInternalCount());
EXPECT_EQ(2, event2->getRefInternalCount());
EXPECT_TRUE(handler->peekIsListEmpty());
@@ -363,7 +363,7 @@ TEST_F(AsyncEventsHandlerTests, givenSleepCandidateWhenProcessedThenCallWaitWith
EXPECT_CALL(*event1, wait(true, true)).Times(1).WillOnce(Invoke(unsetAsyncFlag));
handler->asyncProcess();
MockHandler::asyncProcess(reinterpret_cast<void *>(handler.get()));
event1->setStatus(CL_COMPLETE);
}
@@ -374,7 +374,7 @@ TEST_F(AsyncEventsHandlerTests, asyncProcessCallsProcessListBeforeReturning) {
handler->registerEvent(event);
handler->allowAsyncProcess.store(false);
handler->asyncProcess();
MockHandler::asyncProcess(reinterpret_cast<void *>(handler.get()));
EXPECT_TRUE(handler->peekIsListEmpty());
EXPECT_EQ(1, event->getRefInternalCount());