Re: [Qemu-block] [PATCH v3 3/9] jobs: add exit shim

2018-08-31 Thread Jeff Cody
On Wed, Aug 29, 2018 at 09:57:28PM -0400, John Snow wrote: > All jobs do the same thing when they leave their running loop: > - Store the return code in a structure > - wait to receive this structure in the main thread > - signal job completion via job_completed > > Few jobs do anything beyond exa

[Qemu-block] [PATCH v3 3/9] jobs: add exit shim

2018-08-29 Thread John Snow
All jobs do the same thing when they leave their running loop: - Store the return code in a structure - wait to receive this structure in the main thread - signal job completion via job_completed Few jobs do anything beyond exactly this. Consolidate this exit logic for a net reduction in SLOC. Mo