diff options
Diffstat (limited to 'src/common/fiber.cpp')
| -rw-r--r-- | src/common/fiber.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index e186ed880..b209f52fc 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp | |||
| @@ -79,9 +79,9 @@ void Fiber::Exit() { | |||
| 79 | released = true; | 79 | released = true; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* start_parameter) { | 82 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* rewind_param) { |
| 83 | rewind_point = std::move(rewind_func); | 83 | rewind_point = std::move(rewind_func); |
| 84 | rewind_parameter = start_parameter; | 84 | rewind_parameter = rewind_param; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void Fiber::Rewind() { | 87 | void Fiber::Rewind() { |
| @@ -161,9 +161,9 @@ Fiber::Fiber(std::function<void(void*)>&& entry_point_func, void* start_paramete | |||
| 161 | boost::context::detail::make_fcontext(stack_base, impl->stack.size(), FiberStartFunc); | 161 | boost::context::detail::make_fcontext(stack_base, impl->stack.size(), FiberStartFunc); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* start_parameter) { | 164 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* rewind_param) { |
| 165 | rewind_point = std::move(rewind_func); | 165 | rewind_point = std::move(rewind_func); |
| 166 | rewind_parameter = start_parameter; | 166 | rewind_parameter = rewind_param; |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | Fiber::Fiber() : impl{std::make_unique<FiberImpl>()} {} | 169 | Fiber::Fiber() : impl{std::make_unique<FiberImpl>()} {} |