added pthread error type