pthread_mutex_consistent_np() returns zero after completing successfully. Any other return value indicates that an error occurred.
pthread_mutex_consistent_np() fails if the following condition occurs:
EINVAL
Description:The current thread does not own the mutex or the mutex is not a PTHREAD_MUTEX_ROBUST_NP mutex having an inconsistent state.