Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
blender::compositor::CPUDevice Class Reference

class representing a CPU device. More...

#include <COM_CPUDevice.h>

Inheritance diagram for blender::compositor::CPUDevice:
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 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 15 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()

void CPUDevice::execute ( WorkPackage work)
overridevirtual

◆ thread_id()

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

Definition at line 25 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 31 of file COM_CPUDevice.h.

Referenced by thread_id().


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