Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
glslang::TWorklist Class Reference

Thread-safe worklist for parallel shader compilation. More...

#include <C:/Code/AeonEngine/engine/renderers/vulkan/SPIR-V/Worklist.hpp>

Collaboration diagram for glslang::TWorklist:
Collaboration graph

Public Member Functions

void add (TWorkItem *item)
 Add a work item to the worklist.
bool remove (TWorkItem *&item)
 Remove and return the next work item. Returns false if empty.
int size ()
 Get the number of remaining work items.
bool empty ()
 Check whether the worklist is empty.

Protected Attributes

std::mutex mutex
 Mutex guarding the worklist.
std::list< TWorkItem * > worklist
 Queue of pending work items.

Detailed Description

Thread-safe worklist for parallel shader compilation.

Definition at line 59 of file Worklist.hpp.

Constructor & Destructor Documentation

◆ TWorklist()

glslang::TWorklist::TWorklist ( )
inline

Definition at line 62 of file Worklist.hpp.

◆ ~TWorklist()

virtual glslang::TWorklist::~TWorklist ( )
inlinevirtual

Definition at line 63 of file Worklist.hpp.

Member Function Documentation

◆ add()

void glslang::TWorklist::add ( TWorkItem * item)
inline

Add a work item to the worklist.

Definition at line 66 of file Worklist.hpp.

◆ empty()

bool glslang::TWorklist::empty ( )
inline

Check whether the worklist is empty.

Definition at line 92 of file Worklist.hpp.

◆ remove()

bool glslang::TWorklist::remove ( TWorkItem *& item)
inline

Remove and return the next work item. Returns false if empty.

Definition at line 73 of file Worklist.hpp.

◆ size()

int glslang::TWorklist::size ( )
inline

Get the number of remaining work items.

Definition at line 86 of file Worklist.hpp.

Member Data Documentation

◆ mutex

std::mutex glslang::TWorklist::mutex
protected

Mutex guarding the worklist.

Definition at line 98 of file Worklist.hpp.

◆ worklist

std::list<TWorkItem*> glslang::TWorklist::worklist
protected

Queue of pending work items.

Definition at line 99 of file Worklist.hpp.


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