/* SPDX-FileCopyrightText: 2011 Blender Authors * * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif #include namespace blender::compositor { /** * \brief contains data about work that can be scheduled * \see WorkScheduler */ struct WorkPackage { /** * Called to execute work. */ std::function execute_fn; /** * Called when work execution is finished. */ std::function executed_fn; #ifdef WITH_CXX_GUARDEDALLOC MEM_CXX_CLASS_ALLOC_FUNCS("COM:WorkPackage") #endif }; } // namespace blender::compositor