Dietmar Maurer
0a8f3ae0b3
src/tools/parallel_handler.rs: cleanup check_abort code
2020-10-01 14:37:29 +02:00
Stefan Reiter
dec00364b3
ParallelHandler: check for errors during thread join
...
Fix a potential bug where errors that happen after the SendHandle has
been dropped while doing the thread join might have been ignored.
Requires internal check_abort to be moved out of 'impl SendHandle' since
we only have the Mutex left, not the SendHandle.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-10-01 14:30:32 +02:00
Wolfgang Bumiller
ee1a9c3230
parallel_handler: clippy: 'while_let_loop'
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-09-29 08:13:51 +02:00
Wolfgang Bumiller
db24c01106
parallel_handler: explicit Arc::clone
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-09-28 13:40:03 +02:00
Wolfgang Bumiller
ae3cfa8f0d
parallel_handler: formatting cleanup, doc comment typo fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-09-28 13:40:03 +02:00
Dietmar Maurer
55bee04856
src/tools/parallel_handler.rs: remove unnecessary Sync bound
2020-09-26 16:16:11 +02:00
Dietmar Maurer
b02b374b46
src/tools/parallel_handler.rs: remove static lifetime bound from handler_fn
2020-09-26 09:26:06 +02:00
Dietmar Maurer
1c13afa8f9
src/tools/parallel_handler.rs: join all threads in drop handler
2020-09-26 08:47:56 +02:00
Dietmar Maurer
69b92fab7e
src/tools/parallel_handler.rs: remove unnecessary Sync trait bound
2020-09-26 07:38:44 +02:00
Dietmar Maurer
3c9b370255
src/tools/parallel_handler.rs: execute closure inside a thread pool
2020-09-25 12:58:20 +02:00