Re: [Qemu-devel] [PATCH v2 3/9] jobs: add exit shim

2018-08-27 Thread Max Reitz
On 2018-08-24 00:08, 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 exactly this. Consolidat

[Qemu-devel] [PATCH v2 3/9] jobs: add exit shim

2018-08-23 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