added api for changing thread settings
Merge branch 'master' of github.com:panpiper/Qjax