glui multi-threaded integration