Commit 74b4833
committed
Fix
This fix prevents the Orchestrator instance from waiting for each libgit2 callback to end before starting with the next one.
This way more than one libgit2 callback can be dispatched to the main JS thread, so that they can run in parallel.
NOTE1: the Threadpool creates 10 Orchestrator instances.
NOTE2: an Orchestrator instance takes the libgit2 callbacks from its executorEventsQueue.
NOTE3: libgit2 callbacks for the same AsyncWorker might be created in different libigt2 threads (the case for LFS checkout), but they will queue in the same Executor's queue.1 parent 1acd78f commit 74b4833
2 files changed
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | 377 | | |
381 | 378 | | |
382 | 379 | | |
383 | 380 | | |
384 | 381 | | |
385 | 382 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 383 | + | |
391 | 384 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | 385 | | |
397 | 386 | | |
398 | 387 | | |
| |||
0 commit comments