[-] Yeetus

This commit is contained in:
Reece Wilson 2023-11-29 08:48:17 +00:00
parent b4410fde52
commit 216aa01717
3 changed files with 16 additions and 26 deletions

View File

@ -37,23 +37,22 @@ namespace Aurora::Threading::Threads
/// ///
struct IAuroraThread struct IAuroraThread
{ {
virtual bool Run() = 0; virtual bool Run() = 0;
virtual void Exit() = 0; virtual void Exit() = 0;
virtual bool Exiting() = 0; virtual bool Exiting() = 0;
virtual void SendExitSignal() = 0; virtual void SendExitSignal() = 0;
virtual void UnsafeForceTerminateSignal() = 0; virtual void UnsafeForceTerminateSignal() = 0;
virtual void SetPriority(EThreadPriority prio) = 0; virtual void SetPriority(EThreadPriority prio) = 0;
virtual void SetThrottle(EThreadThrottle throttle) = 0; virtual void SetThrottle(EThreadThrottle throttle) = 0;
virtual void SetAffinity(const HWInfo::CpuBitId &mask) = 0; virtual void SetAffinity(const HWInfo::CpuBitId &mask) = 0;
virtual void SetName(const AuString &name) = 0; virtual void SetName(const AuString &name) = 0;
virtual EThreadPriority GetPriority() = 0; virtual EThreadPriority GetPriority() = 0;
virtual EThreadThrottle GetThrottle() = 0; virtual EThreadThrottle GetThrottle() = 0;
virtual HWInfo::CpuBitId GetMask() = 0; virtual HWInfo::CpuBitId GetMask() = 0;
virtual AuString GetName() = 0; virtual AuString GetName() = 0;
virtual AuUInt64 GetThreadCreationTime(Time::EClock eClock) = 0; virtual AuUInt64 GetThreadCreationTime(Time::EClock eClock) = 0;
@ -66,15 +65,13 @@ namespace Aurora::Threading::Threads
virtual AuUInt64 SetNoUnwindTerminateExitWatchDogTimeoutInMS(AuUInt64 uMS) = 0; virtual AuUInt64 SetNoUnwindTerminateExitWatchDogTimeoutInMS(AuUInt64 uMS) = 0;
virtual AuSPtr<TLSView> GetTlsView() = 0; virtual AuSPtr<IWaitable> AsWaitable() = 0;
virtual AuSPtr<IWaitable> AsWaitable() = 0;
virtual AuSPtr<IO::Loop::ILoopSource> AsLoopSource() = 0; virtual AuSPtr<IO::Loop::ILoopSource> AsLoopSource() = 0;
virtual AuSPtr<IWaitable> GetShutdownSignalWaitable() = 0; virtual AuSPtr<IWaitable> GetShutdownSignalWaitable() = 0;
virtual AuSPtr<IO::Loop::ILoopSource> GetShutdownSignalLS() = 0; virtual AuSPtr<IO::Loop::ILoopSource> GetShutdownSignalLS() = 0;
virtual void Detach() = 0; virtual void Detach() = 0;
virtual void ExecuteInDeadThread(AuFunction<void()> callback) = 0; virtual void ExecuteInDeadThread(AuFunction<void()> callback) = 0;

View File

@ -482,11 +482,6 @@ namespace Aurora::Threading::Threads
AffinityPrioThrottleTickAmendECores(); AffinityPrioThrottleTickAmendECores();
} }
AuSPtr<TLSView> OSThread::GetTlsView()
{
SysPanic("Deprecated Concept");
}
bool OSThread::ExecuteNewOSContext(AuFunction<void()> task) bool OSThread::ExecuteNewOSContext(AuFunction<void()> task)
{ {
this->task_ = task; this->task_ = task;

View File

@ -37,8 +37,6 @@ namespace Aurora::Threading::Threads
HWInfo::CpuBitId GetMask() override; HWInfo::CpuBitId GetMask() override;
AuString GetName() override; AuString GetName() override;
AuSPtr<TLSView> GetTlsView() override;
void ExecuteInDeadThread(AuFunction<void()> callback) override; void ExecuteInDeadThread(AuFunction<void()> callback) override;
AuSPtr<IWaitable> AsWaitable() override; AuSPtr<IWaitable> AsWaitable() override;