Blender
V4.3
intern
guardedalloc
tests
guardedalloc_test_base.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2020-2022 Blender Authors
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#ifndef __GUARDEDALLOC_TEST_UTIL_H__
6
#define __GUARDEDALLOC_TEST_UTIL_H__
7
8
#include "testing/testing.h"
9
10
#include "
MEM_guardedalloc.h
"
11
12
class
LockFreeAllocatorTest
:
public
::testing::Test {
13
protected
:
14
virtual
void
SetUp
()
15
{
16
MEM_use_lockfree_allocator
();
17
}
18
};
19
20
class
GuardedAllocatorTest
:
public
::testing::Test {
21
protected
:
22
virtual
void
SetUp
()
23
{
24
MEM_use_guarded_allocator
();
25
}
26
};
27
28
#endif
// __GUARDEDALLOC_TEST_UTIL_H__
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
GuardedAllocatorTest
Definition
guardedalloc_test_base.h:20
GuardedAllocatorTest::SetUp
virtual void SetUp()
Definition
guardedalloc_test_base.h:22
LockFreeAllocatorTest
Definition
guardedalloc_test_base.h:12
LockFreeAllocatorTest::SetUp
virtual void SetUp()
Definition
guardedalloc_test_base.h:14
MEM_use_lockfree_allocator
void MEM_use_lockfree_allocator()
Definition
mallocn.cc:130
MEM_use_guarded_allocator
void MEM_use_guarded_allocator()
Definition
mallocn.cc:170
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0