diff options
author | Liam <byteslice@airmail.cc> | 2022-06-27 00:52:16 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-07-15 04:47:18 +0200 |
commit | 0624c880bd5af45ae9095465e079fa55458515f6 (patch) | |
tree | a8b9f3adf516af30cad021fc32f8669426946cd5 /src/core/hle/kernel/k_thread.h | |
parent | Merge pull request #8540 from lat9nq/copy-nv-ffmpeg (diff) | |
download | yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.gz yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.bz2 yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.lz yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.xz yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.zst yuzu-0624c880bd5af45ae9095465e079fa55458515f6.zip |
Diffstat (limited to 'src/core/hle/kernel/k_thread.h')
-rw-r--r-- | src/core/hle/kernel/k_thread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index 28cd7ecb0..416a861a9 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -110,6 +110,7 @@ void SetCurrentThread(KernelCore& kernel, KThread* thread); [[nodiscard]] KThread* GetCurrentThreadPointer(KernelCore& kernel); [[nodiscard]] KThread& GetCurrentThread(KernelCore& kernel); [[nodiscard]] s32 GetCurrentCoreId(KernelCore& kernel); +size_t CaptureBacktrace(void** buffer, size_t max); class KThread final : public KAutoObjectWithSlabHeapAndContainer<KThread, KWorkerTask>, public boost::intrusive::list_base_hook<> { @@ -413,6 +414,9 @@ public: [[nodiscard]] static Result InitializeDummyThread(KThread* thread); + [[nodiscard]] static Result InitializeMainThread(Core::System& system, KThread* thread, + s32 virt_core); + [[nodiscard]] static Result InitializeIdleThread(Core::System& system, KThread* thread, s32 virt_core); @@ -435,6 +439,7 @@ public: bool is_pinned; s32 disable_count; KThread* cur_thread; + std::atomic<bool> m_lock; }; [[nodiscard]] StackParameters& GetStackParameters() { |