* new method to wait for the mutex lock. When the queue is empty the lock is on. * calling this method will cause the caller to block until there are new entries */
| 190 | * calling this method will cause the caller to block until there are new entries |
| 191 | */ |
| 192 | bool wait() { |
| 193 | while (size() <= 0) { |
| 194 | usleep(10000); |
| 195 | } |
| 196 | |
| 197 | return true; |
| 198 | } |
| 199 | |
| 200 | void setLimit(uint32_t limit) { |
| 201 | this->limit = limit; |
nothing calls this directly
no outgoing calls
no test coverage detected