IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::ScopedTaskContainer Class Reference

#include <ice/task_scoped_container.hxx>

Inheritance diagram for ice::ScopedTaskContainer:
ice::TaskContainer

Public Member Functions

 ScopedTaskContainer (ice::Allocator &alloc) noexcept
 ~ScopedTaskContainer () noexcept
auto create_tasks (ice::u32 count, ice::ShardID shardid) noexcept -> ice::Span< ice::Task<> > override
 Create a new set of tasks and return the slice containing them.
auto await_tasks_scheduled_on (ice::TaskScheduler &scheduler, ice::TaskScheduler &resumer) noexcept -> ice::Task<> override
auto execute_tasks () noexcept -> ice::u32 override
 Execute all tasks that have been created.
auto running_tasks () const noexcept -> ice::u32 override
 Returns the number of tasks that are currently running.
void wait_tasks () noexcept override
 Wait for all tasks to complete.
auto extract_tasks () noexcept -> ice::Array< ice::Task<> > override
Public Member Functions inherited from ice::TaskContainer
virtual ~TaskContainer () noexcept=default

Constructor & Destructor Documentation

◆ ScopedTaskContainer()

ice::ScopedTaskContainer::ScopedTaskContainer ( ice::Allocator & alloc)
noexcept

◆ ~ScopedTaskContainer()

ice::ScopedTaskContainer::~ScopedTaskContainer ( )
noexcept

Member Function Documentation

◆ await_tasks_scheduled_on()

auto ice::ScopedTaskContainer::await_tasks_scheduled_on ( ice::TaskScheduler & scheduler,
ice::TaskScheduler & resumer ) -> ice::Task<>
overridevirtualnoexcept

Implements ice::TaskContainer.

◆ create_tasks()

auto ice::ScopedTaskContainer::create_tasks ( ice::u32 count,
ice::ShardID shardid ) -> ice::Span< ice::Task<> >
overridevirtualnoexcept

Create a new set of tasks and return the slice containing them.

Implements ice::TaskContainer.

◆ execute_tasks()

auto ice::ScopedTaskContainer::execute_tasks ( ) -> ice::u32
overridevirtualnoexcept

Execute all tasks that have been created.

Implements ice::TaskContainer.

◆ extract_tasks()

auto ice::ScopedTaskContainer::extract_tasks ( ) -> ice::Array< ice::Task<> >
overridevirtualnoexcept

Implements ice::TaskContainer.

◆ running_tasks()

auto ice::ScopedTaskContainer::running_tasks ( ) const -> ice::u32
overridevirtualnoexcept

Returns the number of tasks that are currently running.

Implements ice::TaskContainer.

◆ wait_tasks()

void ice::ScopedTaskContainer::wait_tasks ( )
overridevirtualnoexcept

Wait for all tasks to complete.

Implements ice::TaskContainer.


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