Core: new blenlib library for implicit-sharing #105994

Merged
Jacques Lucke merged 17 commits from JacquesLucke/blender:implicit-sharing into main 2023-03-28 13:58:02 +02:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 6810f4c489 - Show all commits

View File

@ -25,9 +25,9 @@ namespace blender {
* that is currently shared, it has to make a copy first. * that is currently shared, it has to make a copy first.
* This behavior is also called "copy on write". * This behavior is also called "copy on write".
* *
* On top of containing a reference count, #ImplicitSharingInfo also knows how to destruct the * In addition to containing the reference count, #ImplicitSharingInfo also knows how to destruct
* referenced data. This is important because the code freeing the data in the end might not know * the referenced data. This is important because the code freeing the data in the end might not
* how it was allocated (for example, it doesn't know whether an array was allocated using the * know how it was allocated (for example, it doesn't know whether an array was allocated using the
* system or guarded allocator). * system or guarded allocator).
* *
* #ImplicitSharingInfo can be used in two ways: * #ImplicitSharingInfo can be used in two ways: