qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 11/18] job.h: rename job API functions called with job_mut


From: Stefan Hajnoczi
Subject: Re: [PATCH v6 11/18] job.h: rename job API functions called with job_mutex held
Date: Thu, 9 Jun 2022 10:48:01 +0100

On Mon, Mar 14, 2022 at 09:37:00AM -0400, Emanuele Giuseppe Esposito wrote:
>  /**
> - * Release a reference that was previously acquired with job_ref() or
> + * Release a reference that was previously acquired with job_ref_locked() or
>   * job_create(). If it's the last reference to the object, it will be freed.
> + *
> + * Called between job_lock and job_unlock, but might release it temporarly.
>   */
> -void job_unref(Job *job);
> +void job_unref_locked(Job *job);
>  
>  /**
>   * @job: The job that has made progress
> @@ -421,8 +427,10 @@ void job_progress_increase_remaining(Job *job, uint64_t 
> delta);
>   * Conditionally enter the job coroutine if the job is ready to run, not
>   * already busy and fn() returns true. fn() is called while under the 
> job_lock
>   * critical section.
> + *
> + * Called between job_lock and job_unlock, but might release it temporarly.

s/temporarly/temporarily/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]