Blender
V4.3
intern
memutil
intern
MEM_alloc_string_storage.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2024 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include "
MEM_alloc_string_storage.hh
"
10
#include "
MEM_guardedalloc.h
"
11
12
namespace
intern::memutil::internal
{
13
14
AllocStringStorageContainer
&
ensure_storage_container
()
15
{
16
static
thread_local
AllocStringStorageContainer
&storage =
17
MEM_construct_leak_detection_data<AllocStringStorageContainer>();
18
return
storage;
19
}
20
21
}
// namespace intern::memutil::internal
MEM_alloc_string_storage.hh
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
intern::memutil::internal::AllocStringStorageContainer
Definition
MEM_alloc_string_storage.hh:73
intern::memutil::internal
Definition
MEM_alloc_string_storage.cc:12
intern::memutil::internal::ensure_storage_container
AllocStringStorageContainer & ensure_storage_container()
Definition
MEM_alloc_string_storage.cc:14
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0