proxyio/xio — pull request #16 by pipul (2014-07-28 01:13:23+00:00)
Title: turn POSIX's error retured into errno

man pthread_mutex_lock

RETURN VALUE
If successful, the pthread_mutex_lock() and pthread_mutex_unlock() functions shall return zero; otherwise, an error number shall be returned to indicate the error.