perfbook.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@kernel.org>
To: Elad Lahav <e2lahav@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH] CodeSamples: count_stat_eventual.c should use pthread_t with pthread_create()
Date: Sat, 13 Aug 2022 16:04:50 -0700	[thread overview]
Message-ID: <20220813230450.GK2125313@paulmck-ThinkPad-P17-Gen-1> (raw)
In-Reply-To: <20220813111022.2069271-1-e2lahav@gmail.com>

On Sat, Aug 13, 2022 at 07:10:22AM -0400, Elad Lahav wrote:
> Signed-off-by: Elad Lahav <e2lahav@gmail.com>

Queued and pushed, thank you!

							Thanx, Paul

> ---
>  CodeSamples/count/count_stat_eventual.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/CodeSamples/count/count_stat_eventual.c b/CodeSamples/count/count_stat_eventual.c
> index 5179de9d..967644de 100644
> --- a/CodeSamples/count/count_stat_eventual.c
> +++ b/CodeSamples/count/count_stat_eventual.c
> @@ -61,7 +61,7 @@ void *eventual(void *arg)				//\lnlbl{eventual:b}
>  void count_init(void)					//\lnlbl{init:b}
>  {
>  	int en;
> -	thread_id_t tid;
> +	pthread_t tid;
>  
>  	en = pthread_create(&tid, NULL, eventual, NULL);
>  	if (en != 0) {
> -- 
> 2.25.1
> 

      reply	other threads:[~2022-08-13 23:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-13 11:10 [PATCH] CodeSamples: count_stat_eventual.c should use pthread_t with pthread_create() Elad Lahav
2022-08-13 23:04 ` Paul E. McKenney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220813230450.GK2125313@paulmck-ThinkPad-P17-Gen-1 \
    --to=paulmck@kernel.org \
    --cc=e2lahav@gmail.com \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).