add sdl thread