add pthread::exit