WIP: Core: use generic copy-on-write system to avoid redundant copies #104478
|
@ -7,7 +7,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
#include "BLI_compiler_attrs.h"
|
#include "BLI_compiler_attrs.h"
|
||||||
#include "BLI_utildefines.h"
|
#include "BLI_utildefines.h"
|
||||||
|
@ -27,8 +26,6 @@ typedef struct bCopyOnWrite bCopyOnWrite;
|
||||||
|
|
||||||
struct bCopyOnWrite : blender::NonCopyable, blender::NonMovable {
|
struct bCopyOnWrite : blender::NonCopyable, blender::NonMovable {
|
||||||
private:
|
private:
|
||||||
using DeleteFn = std::function<void(const bCopyOnWrite *cow)>;
|
|
||||||
|
|
||||||
mutable std::atomic<int> users_;
|
mutable std::atomic<int> users_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue