diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-04-26 11:44:47 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-26 22:15:22 +0100 |
| commit | 2771a18e85bd91dd881f89f6c14d26cba35a1844 (patch) | |
| tree | b8f710493bf453812f696b5392b17e6e72663d6f /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 2704624eae34016642c940811e9bcfc18aa58a82 (diff) | |
| download | monzero-core-2771a18e85bd91dd881f89f6c14d26cba35a1844.tar.gz monzero-core-2771a18e85bd91dd881f89f6c14d26cba35a1844.tar.xz monzero-core-2771a18e85bd91dd881f89f6c14d26cba35a1844.zip | |
threadpool: allow leaf functions to run concurrently
Decrease the number of worker threads by one to account
for the fact the calling thread acts as a worker thread now
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index dc0b0d297..910bf0c1f 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -697,7 +697,7 @@ namespace cryptonote } }); } - waiter.wait(); + waiter.wait(&tpool); it = tx_blobs.begin(); for (size_t i = 0; i < tx_blobs.size(); i++, ++it) { if (!results[i].res) @@ -725,7 +725,7 @@ namespace cryptonote }); } } - waiter.wait(); + waiter.wait(&tpool); bool ok = true; it = tx_blobs.begin(); |
