[qwaq] Fix missed logic conversion

This commit is contained in:
Bill Currie 2020-03-21 11:36:24 +09:00
parent 7beaa567e6
commit 5f887c4773

View file

@ -297,7 +297,7 @@ qwaq_wait_result (qwaq_resources_t *res, int *result, int cmd, unsigned len)
{ {
pthread_mutex_lock (&res->results_cond.mut); pthread_mutex_lock (&res->results_cond.mut);
while (RB_DATA_AVAILABLE (res->results) < len while (RB_DATA_AVAILABLE (res->results) < len
&& RB_PEEK_DATA (res->results, 0) != cmd) { || RB_PEEK_DATA (res->results, 0) != cmd) {
pthread_cond_wait (&res->results_cond.cond, pthread_cond_wait (&res->results_cond.cond,
&res->results_cond.mut); &res->results_cond.mut);
} }