| 313 | } |
| 314 | |
| 315 | Lock |
| 316 | IOSink::lock() |
| 317 | { |
| 318 | const WriteOperationPointer operation = operation_.lock(); |
| 319 | |
| 320 | if (!operation) { |
| 321 | return Lock(); |
| 322 | } |
| 323 | |
| 324 | assert(operation != nullptr); |
| 325 | assert(operation->mutex_ != nullptr); |
| 326 | |
| 327 | return Lock(operation->mutex_); |
| 328 | } |
| 329 | |
| 330 | void |
| 331 | IOSink::abort() |
no test coverage detected