returns true if there is any work that needs to be handled NOTE: requires holding "work_cv_lock"
| 102 | //! returns true if there is any work that needs to be handled |
| 103 | //! NOTE: requires holding "work_cv_lock" |
| 104 | bool has_work() { |
| 105 | return !work_queue.empty(); |
| 106 | } |
| 107 | |
| 108 | //! returns and removes the cmd from the front of the work queue |
| 109 | //! NOTE: requires holding "work_cv_lock" |