Set the file is enqueued or not. The function is thread-safe.
| 277 | /// Set the file is enqueued or not. |
| 278 | /// The function is thread-safe. |
| 279 | void SetEnqueued(bool is_enqueued) { |
| 280 | std::lock_guard<SpinLock> l(lock_); |
| 281 | DCHECK(is_enqueued != enqueued_); |
| 282 | enqueued_ = is_enqueued; |
| 283 | } |
| 284 | |
| 285 | /// Set the buffer of the file is returned to the pool. |
| 286 | /// The function is thread-safe. |
no outgoing calls
no test coverage detected