Fix return code which is an error occurred at pthread function
Merge pull request #48 from miz-take/prototype

Fix return code which is an error occurred at pthread function