| 1541 | } |
| 1542 | |
| 1543 | void hb_fifo_flush( hb_fifo_t * f ) |
| 1544 | { |
| 1545 | hb_buffer_t * b; |
| 1546 | |
| 1547 | while( ( b = hb_fifo_get( f ) ) ) |
| 1548 | { |
| 1549 | hb_buffer_close( &b ); |
| 1550 | } |
| 1551 | hb_lock( f->lock ); |
| 1552 | hb_cond_signal( f->cond_empty ); |
| 1553 | hb_cond_signal( f->cond_full ); |
| 1554 | hb_unlock( f->lock ); |
| 1555 | |
| 1556 | } |
| 1557 | |
| 1558 | #if defined(HB_BUFFER_DEBUG) |
| 1559 | static int hb_fifo_contains( hb_fifo_t *f, hb_buffer_t *b ) |
no test coverage detected