diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-18 11:13:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-18 11:13:20 -0400 |
| commit | f101c4305bacfeed81ed3e4688fe2cde6939ca9b (patch) | |
| tree | f9c4227b3e655fcaa7203c962f49a20de68d6729 /src/input_common/sdl/sdl_impl.cpp | |
| parent | c61da389636113b3e93ec0b048eea70b2e828a76 (diff) | |
| parent | 3a67c46490a45d30588202cc4f8198db7e63bad4 (diff) | |
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.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 934339d3bc..6e83765495 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); } }); } |
