perfbook.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Elad Lahav <e2lahav@gmail.com>
To: perfbook@vger.kernel.org
Cc: Elad Lahav <e2lahav@gmail.com>
Subject: [PATCH] CodeSamples: count_stat_eventual.c should use pthread_t with pthread_create()
Date: Sat, 13 Aug 2022 07:10:22 -0400	[thread overview]
Message-ID: <20220813111022.2069271-1-e2lahav@gmail.com> (raw)

Signed-off-by: Elad Lahav <e2lahav@gmail.com>
---
 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 11:10 UTC|newest]

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

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=20220813111022.2069271-1-e2lahav@gmail.com \
    --to=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).