* Mark the module as failed, recording the reason in the error * string. */
| 153 | * string. |
| 154 | */ |
| 155 | void fail(const std::string &reason) |
| 156 | { |
| 157 | std::lock_guard l(lock); |
| 158 | failed = true; |
| 159 | error_string = reason; |
| 160 | } |
| 161 | |
| 162 | bool is_enabled() const { |
| 163 | std::lock_guard l(lock); |