J Reece Wilson
b29f8ebf21
[*] Preemptive linux/clang API fixes [*] Fix clang equiv MSVC template bug (they're nice enough to throw an error instead of crashing)
33 lines
969 B
C++
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;
|
|
};
|
|
} |