diff --git a/doc/fluid/design/async_executor/async_executor.md b/doc/fluid/design/async_executor/async_executor.md index 18445e96858ff3b760e9df26873f16fc9e700793..e5d485194ca7029180f6062258e44c835ea19054 100644 --- a/doc/fluid/design/async_executor/async_executor.md +++ b/doc/fluid/design/async_executor/async_executor.md @@ -102,6 +102,22 @@ void AsyncExecutor::RunFromFiles( } // fetch variables in scope 0, and return } + +``` +Inside the function ```CreateThreads```, +``` c++ +void AsyncExecutor::CreateThreads(const ExecutorThreadWorker* worker, + const ProgramDesc& main_program, + const DataFeed& reader, + const Scope& root_scope, + const int thread_index) { + worker->SetThreadid(thread_index); + worker->CreateThreadOperators(main_program); + worker->CreateThreadScope(main_program); + worker->BindingDataFeedMemory(reader); + worker->SetMainProgram(main_program); + worker->SetRootScope(root_scope); +} ``` Inside the function ```Trainfiles```, ``` c++