| 412 | Future<Response> __processes__(const Request& request); |
| 413 | |
| 414 | void install(Filter* f) |
| 415 | { |
| 416 | // NOTE: even though `filter` is atomic we still need to |
| 417 | // synchronize updating it because once we return from this |
| 418 | // function the old filter might get deleted which could be bad if |
| 419 | // a thread is currently using the old filter in |
| 420 | // `ProcessManager::resume`. |
| 421 | synchronized (filter_mutex) { |
| 422 | filter.store(f); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | long workers() const |
| 427 | { |