| 622 | } |
| 623 | |
| 624 | void counter_t::add(uint32_t count) |
| 625 | { |
| 626 | if(!state) |
| 627 | return; |
| 628 | state->count += count; |
| 629 | if(state->inverse) |
| 630 | { |
| 631 | SMutexLock guard(state->mutex); |
| 632 | state->cv.notify(); |
| 633 | } |
| 634 | } |
| 635 | |
| 636 | bool counter_t::decrease() |
| 637 | { |
no test coverage detected