Make it easier to remember that the mutex must be locked before and unlocked after by the caller of the function.
*
* This is a blocking operation.
*
+ * The caller must lock the mutex before calling this.
+ * The caller should unlock the mutex after calling this.
+ *
* @param condition
* The condition to wait on.
* @param mutex
* This is a semi-blocking operation.
* This blocks until timeout and then no longer block.
*
+ * The caller must lock the mutex before calling this.
+ * The caller should unlock the mutex after calling this.
+ *
* @param wait
* The amount of time to wait for.
* The wait time is relative to the clock, so consider calling clock_gettime() or gettimeofday() and then adding the amount of wait time.