AuroraRuntime/Include/Aurora/Threading/Threads/ThreadInfo.hpp
J Reece Wilson b29f8ebf21 [*] Major fix -> vec wrapper w/o glm accessors were broken
[*] Preemptive linux/clang API fixes
[*] Fix clang equiv MSVC template bug (they're nice enough to throw an error instead of crashing)
2022-03-20 09:56:15 +00:00

33 lines
969 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: ThreadInfo.hpp
Date: 2021-8-28
Author: Reece
***/
#pragma once
namespace Aurora::Threading::Threads
{
struct ThreadInfo
{
ThreadInfo()
{}
ThreadInfo(const AuSPtr<IThreadVectors> &callbacks) : callbacks(callbacks), stackSize(0)
{}
ThreadInfo(const AuSPtr<IThreadVectors> &callbacks, const AuString &name) : callbacks(callbacks), name(name), stackSize(0)
{}
ThreadInfo(const AuSPtr<IThreadVectors> &callbacks, const AuString &name, AuUInt32 stackSize) : callbacks(callbacks), name(name), stackSize(stackSize)
{}
ThreadInfo(const AuSPtr<IThreadVectors> &callbacks, AuUInt32 stackSize) : callbacks(callbacks), stackSize(stackSize)
{}
AuSPtr<IThreadVectors> callbacks;
AuUInt32 stackSize;
AuOptional<AuString> name;
};
}