summaryrefslogtreecommitdiffstats
path: root/src/common/fiber.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-06 07:10:03 +0100
committerbunnei <bunneidev@gmail.com>2021-03-06 07:10:03 +0100
commit68ffac250ae2d1c2d5d961304d2c61f6755ab033 (patch)
tree4888d0fd2474dc90ad84a17ba71010a325beb984 /src/common/fiber.h
parentMerge pull request #6036 from bunnei/thread-leak (diff)
downloadyuzu-68ffac250ae2d1c2d5d961304d2c61f6755ab033.tar
yuzu-68ffac250ae2d1c2d5d961304d2c61f6755ab033.tar.gz
yuzu-68ffac250ae2d1c2d5d961304d2c61f6755ab033.tar.bz2
yuzu-68ffac250ae2d1c2d5d961304d2c61f6755ab033.tar.lz
yuzu-68ffac250ae2d1c2d5d961304d2c61f6755ab033.tar.xz
yuzu-68ffac250ae2d1c2d5d961304d2c61f6755ab033.tar.zst
yuzu-68ffac250ae2d1c2d5d961304d2c61f6755ab033.zip
Diffstat (limited to '')
-rw-r--r--src/common/fiber.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/fiber.h b/src/common/fiber.h
index f7f587f8c..d96be6019 100644
--- a/src/common/fiber.h
+++ b/src/common/fiber.h
@@ -41,7 +41,7 @@ public:
/// Yields control from Fiber 'from' to Fiber 'to'
/// Fiber 'from' must be the currently running fiber.
- static void YieldTo(std::shared_ptr<Fiber> from, std::shared_ptr<Fiber> to);
+ static void YieldTo(std::weak_ptr<Fiber> weak_from, std::shared_ptr<Fiber> to);
[[nodiscard]] static std::shared_ptr<Fiber> ThreadToFiber();
void SetRewindPoint(std::function<void(void*)>&& rewind_func, void* rewind_param);