Threading wrappers for TPW-SDL