mirror of
https://github.com/BeneficialCode/WinArk.git
synced 2026-10-17 04:40:35 +08:00
19 lines
451 B
C++
19 lines
451 B
C++
#pragma once
|
|
|
|
struct ThreadInfoEx final {
|
|
explicit ThreadInfoEx(WinSys::ThreadInfo* ti) :Info(ti) {}
|
|
DWORD64 TargetTime{ 0 };
|
|
bool IsNew{ false };
|
|
bool IsTerminating{ false };
|
|
bool IsTerminated{ false };
|
|
WinSys::ThreadInfo* Info;
|
|
WinSys::ComFlags GetComFlags() const;
|
|
int GetMemoryPriority() const;
|
|
WinSys::IoPriority GetIoPriority() const;
|
|
|
|
private:
|
|
WinSys::Thread* OpenThread() const;
|
|
mutable std::unique_ptr<WinSys::Thread> _thread;
|
|
};
|
|
|