Skip to contentSkip to conversation

CodeSamples: count_stat_eventual.c should use pthread_t with pthread_create()

PATCH Applied Elad Lahav 2 participants 2 messages Aug 13, 2022

lore
Share & tools
lore

Elad Lahav

author
#0 lore raw

PATCH 1/1 CodeSamples: count_stat_eventual.c should use pthread_t with pthread_create()

---
 CodeSamples/count/count_stat_eventual.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
CodeSamples/count/count_stat_eventual.c +1 -1
index 5179de9d..967644de 100644
@@ -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) {
Signature · 1 line
2.25.1
#1 lore raw
Quoted 1 line · Elad Lahav

Queued and pushed, thank you!

Thanx, Paul

Quoted 20 lines
---
 CodeSamples/count/count_stat_eventual.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
CodeSamples/count/count_stat_eventual.c +1 -1
index 5179de9d..967644de 100644
@@ -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) {
Signature · 1 line
2.25.1