new threading structure
Merge remote-tracking branch 'origin/sdl1' into sdl1