mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Disallow copying and moving TagNode
Change-Id: I1a350edaff300c68a4a7314ea984382b88288413 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
42200bf7f3
commit
71bd96ad71
@@ -79,6 +79,11 @@ class MockTagAllocator : public TagAllocator<TagType> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
TEST_F(TagAllocatorTest, givenTagNodeTypeWhenCopyingOrMovingThenDisallow) {
|
||||||
|
EXPECT_FALSE(std::is_move_constructible<TagNode<TimeStamps>>::value);
|
||||||
|
EXPECT_FALSE(std::is_copy_constructible<TagNode<TimeStamps>>::value);
|
||||||
|
}
|
||||||
|
|
||||||
TEST_F(TagAllocatorTest, Initialize) {
|
TEST_F(TagAllocatorTest, Initialize) {
|
||||||
|
|
||||||
MockTagAllocator<TimeStamps> tagAllocator(memoryManager, 100, 64, deviceBitfield);
|
MockTagAllocator<TimeStamps> tagAllocator(memoryManager, 100, 64, deviceBitfield);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ template <typename TagType>
|
|||||||
class TagAllocator;
|
class TagAllocator;
|
||||||
|
|
||||||
template <typename TagType>
|
template <typename TagType>
|
||||||
struct TagNode : public IDNode<TagNode<TagType>> {
|
struct TagNode : public IDNode<TagNode<TagType>>, NonCopyableOrMovableClass {
|
||||||
public:
|
public:
|
||||||
TagType *tagForCpuAccess;
|
TagType *tagForCpuAccess;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user