if (dctx->api_stalled)
cnd_signal(&dctx->cond);
- if (list_empty(&records)) {
+ if (list_is_empty(&records)) {
if (dctx->kill_thread)
break;
dctx->api_stalled = false;
}
- if (list_empty(&dctx->records))
+ if (list_is_empty(&dctx->records))
cnd_signal(&dctx->cond);
list_addtail(&record->list, &dctx->records);