cond_wait() returns 0 if successful. When any of the following conditions is detected, cond_wait() fails and returns the corresponding value.
EFAULT
Description:cv points to an illegal address.
EINTR
Description:The wait was interrupted by a signal.