Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
common.hpp File Reference
#include <bit>
#include <taskflow/core/task.hpp>
#include <concepts>
#include <cstdint>
#include <expected>
#include <string_view>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  helios
namespace  helios::async
namespace  helios::async::details

Concepts

concept  helios::async::StaticTask
 Concept for static task callables.
concept  helios::async::SubTask
 Concept for sub-task callables that receive a SubTaskGraph reference.
concept  helios::async::AnyTask
 Concept for any valid task callable.

Typedefs

template<typename T = void>
using helios::async::AsyncResult = std::expected<T, AsyncError>
 Result type for async operations.

Enumerations

enum class  helios::async::TaskType : uint8_t { helios::async::kUndefined , helios::async::kStatic , helios::async::kSubTask , helios::async::kAsync }
 Types of tasks in the async system. More...
enum class  helios::async::AsyncError : uint8_t {
  helios::async::kInvalidTask , helios::async::kExecutorShutdown , helios::async::kTaskNotFound , helios::async::kInvalidDependency ,
  helios::async::kCircularDependency , helios::async::kSchedulingFailed , helios::async::kThreadNotAvailable
}
 Error codes for async operations. More...

Functions

constexpr std::string_view helios::async::ToString (AsyncError error) noexcept
 Converts AsyncError to string representation.
static constexpr TaskType helios::async::details::ConvertTaskType (tf::TaskType type) noexcept
 Converts Taskflow task type to Helios task type.