| 65 | } |
| 66 | |
| 67 | std::function<int(VoidContextPtr)> makeTask(TaskId taskId) |
| 68 | { |
| 69 | return [this, taskId](VoidContextPtr ctx)->int |
| 70 | { |
| 71 | taskFunc(ctx, taskId, nullptr, ""); |
| 72 | return 0; |
| 73 | }; |
| 74 | } |
| 75 | |
| 76 | std::function<int(VoidContextPtr)> makeTaskWithBlock(TaskId taskId, std::atomic<bool>* blockFlag) |
| 77 | { |