Blender V4.3
blender::compositor::CPUDevice Class Reference

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
 
Deviceoperator= (const Device &other)=delete
 
Deviceoperator= (Device &&other)=delete
 
virtual ~Device ()
 Declaration of the virtual destructor.
 

Protected Attributes

int thread_id_
 

Detailed Description

class representing a CPU device.

Note
for every hardware thread in the system a CPUDevice instance will exist in the workscheduler.

Definition at line 16 of file COM_CPUDevice.h.

Constructor & Destructor Documentation

◆ CPUDevice()

CPUDevice::CPUDevice ( int thread_id)

Definition at line 11 of file COM_CPUDevice.cc.

Member Function Documentation

◆ execute()

◆ thread_id()

int blender::compositor::CPUDevice::thread_id ( )
inline

Definition at line 26 of file COM_CPUDevice.h.

References thread_id_.

Referenced by blender::compositor::WorkScheduler::current_thread_id().

Member Data Documentation

◆ thread_id_

int blender::compositor::CPUDevice::thread_id_
protected

Definition at line 32 of file COM_CPUDevice.h.

Referenced by thread_id().


The documentation for this class was generated from the following files: