From ee547e8eac86141cfa53f3ba0dd7198a5112aff4 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 15 Mar 2012 15:42:36 -0700 Subject: [PATCH 1/1] libthreads: make typedef for 'thread_id_t' Just in case we need to change it later on, let's use it as a named type. --- libthreads.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libthreads.h b/libthreads.h index aa7faf4..9d290a7 100644 --- a/libthreads.h +++ b/libthreads.h @@ -10,12 +10,14 @@ typedef enum thread_state { THREAD_COMPLETED } thread_state; +typedef int thread_id_t; + struct thread { void (*start_routine)(); void *arg; ucontext_t context; void *stack; - int id; + thread_id_t id; thread_state state; }; -- 2.34.1