MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / copyFile

Method copyFile

Libraries/Async/Async.cpp:797–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795 operation = Operation::None;
796}
797
798void 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
807SC::Result SC::AsyncFileSystemOperation::setThreadPool(ThreadPool& threadPool, AsyncThreadPoolMode mode)
808{
809 threadPoolMode = mode;
810 return loopWork.setThreadPool(threadPool, mode);
811}
812
813SC::Result SC::AsyncFileSystemOperation::stop(AsyncEventLoop& eventLoop, Function<void(AsyncResult&)>* afterStopped)
814{
815 if (not loopWork.isFree())

Callers 2

copyExistsFileMethod · 0.45
await_suspendMethod · 0.45

Calls 4

PlacementNewClass · 0.85
copyFileFunction · 0.85
ResultClass · 0.70
startMethod · 0.45

Tested by 1

copyExistsFileMethod · 0.36