summaryrefslogtreecommitdiff
path: root/src/utils/sdl2helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r--src/utils/sdl2helper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp
index 4f99dc512..7648ccc2b 100644
--- a/src/utils/sdl2helper.cpp
+++ b/src/utils/sdl2helper.cpp
@@ -188,4 +188,10 @@ void SDL::initLogger()
SDL2Logger::init();
}
+void SDL::WaitThread(SDL_Thread *const thread)
+{
+ if (thread != nullptr)
+ SDL_WaitThread(thread, nullptr);
+}
+
#endif // USE_SDL2