mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
use release for cl-objects instead of delete
- fix for data race in events - modification of the addition child event Change-Id: I6ea3a413f13f13a91d37d20d8b9fad37d0ffafb9
This commit is contained in:
committed by
sys_ocldev
parent
3820a5e8e5
commit
e1eab521e7
@@ -156,21 +156,6 @@ TEST(Event, givenCommandQueueWhenEventIsCreatedWithoutCommandQueueThenCommandQue
|
||||
EXPECT_EQ(intitialRefCount, finalRefCount);
|
||||
}
|
||||
|
||||
TEST(Event, currentCmdQVirtualEventSetToFalseInCtor) {
|
||||
Event *event = new Event(nullptr, CL_COMMAND_NDRANGE_KERNEL, 4, 10);
|
||||
|
||||
EXPECT_FALSE(event->isCurrentCmdQVirtualEvent());
|
||||
delete event;
|
||||
}
|
||||
|
||||
TEST(Event, setCurrentCmdQVirtualEven) {
|
||||
Event *event = new Event(nullptr, CL_COMMAND_NDRANGE_KERNEL, 4, 10);
|
||||
event->setCurrentCmdQVirtualEvent(true);
|
||||
|
||||
EXPECT_TRUE(event->isCurrentCmdQVirtualEvent());
|
||||
delete event;
|
||||
}
|
||||
|
||||
TEST(Event, waitForEventsFlushesAllQueues) {
|
||||
class MockCommandQueueWithFlushCheck : public MockCommandQueue {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user