From ad3c7c39632343541f85667ed6ae2e27bc18d0e9 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 19 Apr 2012 23:28:41 -0700 Subject: [PATCH] threads: introduce THREAD_ID_T_NONE Represents a kind of 'NULL' thread, but for integer IDs. --- threads.h | 2 ++ tree.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/threads.h b/threads.h index b973224..9787c3f 100644 --- a/threads.h +++ b/threads.h @@ -5,6 +5,8 @@ #include "libthreads.h" +#define THREAD_ID_T_NONE -1 + typedef enum thread_state { THREAD_CREATED, THREAD_RUNNING, diff --git a/tree.h b/tree.h index 6d37038..676cbe4 100644 --- a/tree.h +++ b/tree.h @@ -3,7 +3,7 @@ #include "threads.h" typedef thread_id_t tree_t; -#define TREE_T_NONE -1 +#define TREE_T_NONE THREAD_ID_T_NONE /* * An n-ary tree -- 2.34.1