diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-18 16:13:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 16:13:20 +0100 |
commit | e05136f70be56ac241fc4679a8a2f0535776b39a (patch) | |
tree | f9c4227b3e655fcaa7203c962f49a20de68d6729 /src | |
parent | Merge pull request #2238 from lioncash/thread (diff) | |
parent | input_common/sdl_impl: Make lambda capture more specific in SDLState constructor (diff) | |
download | yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar.gz yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar.bz2 yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar.lz yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar.xz yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.tar.zst yuzu-e05136f70be56ac241fc4679a8a2f0535776b39a.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 5 |
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() { initialized = true; if (start_thread) { - poll_thread = std::thread([&] { + poll_thread = std::thread([this] { using namespace std::chrono_literals; - SDL_Event event; while (initialized) { SDL_PumpEvents(); - std::this_thread::sleep_for(std::chrono::duration(10ms)); + std::this_thread::sleep_for(10ms); } }); } |