mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Create os specific thread implementation
Change-Id: I267d6cb021a75713c28a7bbf29384da13d2a7217
This commit is contained in:
committed by
sys_ocldev
parent
c104db1d5e
commit
09e4dab4f6
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user