summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2019-03-18 11:13:20 -0400
committerGravatar GitHub2019-03-18 11:13:20 -0400
commite05136f70be56ac241fc4679a8a2f0535776b39a (patch)
treef9c4227b3e655fcaa7203c962f49a20de68d6729 /src/input_common/sdl/sdl_impl.cpp
parentMerge pull request #2238 from lioncash/thread (diff)
parentinput_common/sdl_impl: Make lambda capture more specific in SDLState constructor (diff)
downloadyuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar.gz
yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar.xz
yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.zip
Merge pull request #2254 from lioncash/redundant
input_common/sdl_impl: Minor cleanup in SDLState constructor
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
-rw-r--r--src/input_common/sdl/sdl_impl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp
index 934339d3b..6e8376549 100644
--- a/src/input_common/sdl/sdl_impl.cpp
+++ b/src/input_common/sdl/sdl_impl.cpp
@@ -475,12 +475,11 @@ SDLState::SDLState() {
475 475
476 initialized = true; 476 initialized = true;
477 if (start_thread) { 477 if (start_thread) {
478 poll_thread = std::thread([&] { 478 poll_thread = std::thread([this] {
479 using namespace std::chrono_literals; 479 using namespace std::chrono_literals;
480 SDL_Event event;
481 while (initialized) { 480 while (initialized) {
482 SDL_PumpEvents(); 481 SDL_PumpEvents();
483 std::this_thread::sleep_for(std::chrono::duration(10ms)); 482 std::this_thread::sleep_for(10ms);
484 } 483 }
485 }); 484 });
486 } 485 }