- ImBuf reference counting: turn that into just an atomic integer - Cachefile safety: turn into a mutex, since work under the spinlock was quite heavy (hashtable creation, other memory allocations) - Movie clip editor: turn into a mutex, since work under the spinlock was very heavy (reading files from disk, etc.) - Mesh intersect: remove the previously commented out spinlock path; replace BLI mutex with C++ mutex for shorter code Pull Request: https://projects.blender.org/blender/blender/pulls/137989
29 lines
464 B
C++
29 lines
464 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup imbuf
|
|
*/
|
|
|
|
#include <cstddef>
|
|
|
|
#include "IMB_allocimbuf.hh"
|
|
#include "IMB_colormanagement_intern.hh"
|
|
#include "IMB_filetype.hh"
|
|
#include "IMB_imbuf.hh"
|
|
|
|
void IMB_init()
|
|
{
|
|
imb_mmap_lock_init();
|
|
imb_filetypes_init();
|
|
colormanagement_init();
|
|
}
|
|
|
|
void IMB_exit()
|
|
{
|
|
imb_filetypes_exit();
|
|
colormanagement_exit();
|
|
imb_mmap_lock_exit();
|
|
}
|