Rewriting logic to fix issue where pthread_create would return errors other than EINVAL, and these errors would be ignored. Change-Id: I573958724dcf886c20e8c14e6a9182303b3ffa06 [ROCm/ROCR-Runtime commit: c8dd4d2b3b]
c8dd4d2b3b