| 795 | operation = Operation::None; |
| 796 | } |
| 797 | |
| 798 | void SC::AsyncFileSystemOperation::onOperationCompleted(AsyncLoopWork::Result& res) |
| 799 | { |
| 800 | SC::Result result = res.isValid(); |
| 801 | AsyncFileSystemOperation::Result fsRes(res.eventLoop, *this, result, nullptr); |
| 802 | fsRes.completionData = completionData; |
| 803 | callback(fsRes); |
| 804 | // TODO: should we call reactivateRequest here? |
| 805 | } |
| 806 | |
| 807 | SC::Result SC::AsyncFileSystemOperation::setThreadPool(ThreadPool& threadPool, AsyncThreadPoolMode mode) |
| 808 | { |
| 809 | threadPoolMode = mode; |
| 810 | return loopWork.setThreadPool(threadPool, mode); |
| 811 | } |
| 812 | |
| 813 | SC::Result SC::AsyncFileSystemOperation::stop(AsyncEventLoop& eventLoop, Function<void(AsyncResult&)>* afterStopped) |
| 814 | { |
| 815 | if (not loopWork.isFree()) |