Blender  V2.93
Public Member Functions | Protected Attributes | List of all members
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 More...
 
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. More...
 

Protected Attributes

int m_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 30 of file COM_CPUDevice.h.

Constructor & Destructor Documentation

◆ CPUDevice()

CPUDevice::CPUDevice ( int  thread_id)

Definition at line 27 of file COM_CPUDevice.cc.

Member Function Documentation

◆ execute()

void CPUDevice::execute ( WorkPackage work)
overridevirtual

◆ thread_id()

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

Definition at line 40 of file COM_CPUDevice.h.

References m_thread_id.

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

Member Data Documentation

◆ m_thread_id

int blender::compositor::CPUDevice::m_thread_id
protected

Definition at line 46 of file COM_CPUDevice.h.

Referenced by thread_id().


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