Blender V4.3
COM_CPUDevice.cc
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#include "COM_CPUDevice.h"
6
7#include "COM_WorkPackage.h"
8
9namespace blender::compositor {
10
11CPUDevice::CPUDevice(int thread_id) : thread_id_(thread_id) {}
12
14{
15 work_package->execute_fn();
16 if (work_package->executed_fn) {
17 work_package->executed_fn();
18 }
19}
20
21} // namespace blender::compositor
void execute(WorkPackage *work) override
execute a WorkPackage
contains data about work that can be scheduled
std::function< void()> executed_fn
std::function< void()> execute_fn