diff options
Diffstat (limited to 'src/common/fiber.cpp')
| -rw-r--r-- | src/common/fiber.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index 050c93acb..1220eddf0 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp | |||
| @@ -32,13 +32,12 @@ void __stdcall Fiber::FiberStartFunc(void* fiber_parameter) { | |||
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | Fiber::Fiber(std::function<void(void*)>&& entry_point_func, void* start_parameter) | 34 | Fiber::Fiber(std::function<void(void*)>&& entry_point_func, void* start_parameter) |
| 35 | : guard{}, entry_point{std::move(entry_point_func)}, start_parameter{start_parameter}, | 35 | : entry_point{std::move(entry_point_func)}, start_parameter{start_parameter} { |
| 36 | previous_fiber{} { | ||
| 37 | impl = std::make_unique<FiberImpl>(); | 36 | impl = std::make_unique<FiberImpl>(); |
| 38 | impl->handle = CreateFiber(0, &FiberStartFunc, this); | 37 | impl->handle = CreateFiber(0, &FiberStartFunc, this); |
| 39 | } | 38 | } |
| 40 | 39 | ||
| 41 | Fiber::Fiber() : guard{}, entry_point{}, start_parameter{}, previous_fiber{} { | 40 | Fiber::Fiber() { |
| 42 | impl = std::make_unique<FiberImpl>(); | 41 | impl = std::make_unique<FiberImpl>(); |
| 43 | } | 42 | } |
| 44 | 43 | ||