summaryrefslogtreecommitdiff
path: root/src/common/fiber.h
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-10-28 04:54:19 -0400
committerGitHub <noreply@github.com>2020-10-28 04:54:19 -0400
commita1f176ce524259894f01800f23e5fdbfa5a49b56 (patch)
tree09ee748e1cd0c094ab96da15924e61f953f6312d /src/common/fiber.h
parent1fd22823bcfd4981836404ab84de51ea67a4b19f (diff)
parentcdb2480d391b3c57fa014c2ab65824f7c9e378fc (diff)
Merge pull request #4850 from ReinUsesLisp/fiber-ptr-ref
common/fiber: Take shared_ptr<Fiber> by copy in YieldTo
Diffstat (limited to 'src/common/fiber.h')
-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 89dde5e36..cefd61df9 100644
--- a/src/common/fiber.h
+++ b/src/common/fiber.h
@@ -46,7 +46,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::shared_ptr<Fiber> from, std::shared_ptr<Fiber> to);
[[nodiscard]] static std::shared_ptr<Fiber> ThreadToFiber();
void SetRewindPoint(std::function<void(void*)>&& rewind_func, void* start_parameter);