|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Thread-safe worklist for parallel shader compilation. More...
#include <C:/Code/AeonEngine/engine/renderers/vulkan/SPIR-V/Worklist.hpp>

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. | |
Thread-safe worklist for parallel shader compilation.
Definition at line 59 of file Worklist.hpp.
|
inline |
Definition at line 62 of file Worklist.hpp.
|
inlinevirtual |
Definition at line 63 of file Worklist.hpp.
|
inline |
Add a work item to the worklist.
Definition at line 66 of file Worklist.hpp.
|
inline |
Check whether the worklist is empty.
Definition at line 92 of file Worklist.hpp.
|
inline |
Remove and return the next work item. Returns false if empty.
Definition at line 73 of file Worklist.hpp.
|
inline |
Get the number of remaining work items.
Definition at line 86 of file Worklist.hpp.
|
protected |
Mutex guarding the worklist.
Definition at line 98 of file Worklist.hpp.
|
protected |
Queue of pending work items.
Definition at line 99 of file Worklist.hpp.