|
Blender V4.3
|
class representing a CPU device. More...
#include <COM_CPUDevice.h>
Inherits blender::compositor::Device.
Public Member Functions | |
| CPUDevice (int thread_id) | |
| void | execute (WorkPackage *work) override |
| execute a WorkPackage | |
| int | thread_id () |
Public Member Functions inherited from blender::compositor::Device | |
| Device ()=default | |
| Device (const Device &other)=delete | |
| Device (Device &&other) noexcept=default | |
| Device & | operator= (const Device &other)=delete |
| Device & | operator= (Device &&other)=delete |
| virtual | ~Device () |
| Declaration of the virtual destructor. | |
Protected Attributes | |
| int | thread_id_ |
class representing a CPU device.
Definition at line 16 of file COM_CPUDevice.h.
| CPUDevice::CPUDevice | ( | int | thread_id | ) |
Definition at line 11 of file COM_CPUDevice.cc.
|
overridevirtual |
execute a WorkPackage
| work | the WorkPackage to execute |
Implements blender::compositor::Device.
Definition at line 13 of file COM_CPUDevice.cc.
References blender::compositor::WorkPackage::execute_fn, and blender::compositor::WorkPackage::executed_fn.
Referenced by blender::compositor::threading_model_queue_execute(), and blender::compositor::threading_model_single_thread_execute().
|
inline |
Definition at line 26 of file COM_CPUDevice.h.
References thread_id_.
Referenced by blender::compositor::WorkScheduler::current_thread_id().
|
protected |
Definition at line 32 of file COM_CPUDevice.h.
Referenced by thread_id().