| 24 | } |
| 25 | |
| 26 | void Execute (const AsyncProgressQueueWorker::ExecutionProgress& progress) { |
| 27 | for (int i = 0; i < iters; ++i) { |
| 28 | progress.Send(reinterpret_cast<const char*>(&i), sizeof(int)); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | void HandleProgressCallback(const char *data, size_t count) { |
| 33 | HandleScope scope; |