Blender V4.3
COM_WorkPackage.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#ifdef WITH_CXX_GUARDEDALLOC
8# include "MEM_guardedalloc.h"
9#endif
10
11#include <functional>
12
13namespace blender::compositor {
14
23 std::function<void()> execute_fn;
24
28 std::function<void()> executed_fn;
29
30#ifdef WITH_CXX_GUARDEDALLOC
31 MEM_CXX_CLASS_ALLOC_FUNCS("COM:WorkPackage")
32#endif
33};
34
35} // namespace blender::compositor
Read Guarded memory(de)allocation.
contains data about work that can be scheduled
std::function< void()> executed_fn
std::function< void()> execute_fn