| 140 | } |
| 141 | |
| 142 | void MemoryPlanner::SetThreadPool(thread::ThreadPool* thread_pool) { |
| 143 | if (thread_pool_ == nullptr) { |
| 144 | thread_pool_ = thread_pool; |
| 145 | } |
| 146 | } |
| 147 | void MemoryPlanner::Schedule(std::function<void()> f) { |
| 148 | if (thread_pool_ == nullptr) { |
| 149 | f(); |
no outgoing calls