Returns true if new tasks may be submitted to this token.
| 723 | |
| 724 | // Returns true if new tasks may be submitted to this token. |
| 725 | bool MaySubmitNewTasks() const { |
| 726 | return state_ != State::QUIESCING && |
| 727 | state_ != State::QUIESCED; |
| 728 | } |
| 729 | |
| 730 | State state() const { return state_; } |
| 731 | ThreadPool::ExecutionMode mode() const { return mode_; } |