summaryrefslogtreecommitdiff
path: root/src/common/fiber.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-10 14:45:08 -0400
committerGravatar Fernando Sahmkow2020-06-18 16:29:21 -0400
commit1f7dd36499786d373b143a4437d4c32e077a32aa (patch)
tree26d21b113d85c6630f3ff67f7affc7c1b6f508a5 /src/common/fiber.cpp
parentCommon: Make MinGW build use Windows Fibers instead of fcontext_t (diff)
downloadyuzu-1f7dd36499786d373b143a4437d4c32e077a32aa.tar.gz
yuzu-1f7dd36499786d373b143a4437d4c32e077a32aa.tar.xz
yuzu-1f7dd36499786d373b143a4437d4c32e077a32aa.zip
Common/Tests: Address Feedback
Diffstat (limited to 'src/common/fiber.cpp')
-rw-r--r--src/common/fiber.cpp5
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
34Fiber::Fiber(std::function<void(void*)>&& entry_point_func, void* start_parameter) 34Fiber::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
41Fiber::Fiber() : guard{}, entry_point{}, start_parameter{}, previous_fiber{} { 40Fiber::Fiber() {
42 impl = std::make_unique<FiberImpl>(); 41 impl = std::make_unique<FiberImpl>();
43} 42}
44 43