X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads.h;h=7a21a30d8d93f49e4e0c13d37dfeb18f21260b47;hb=3cade2fadc95d3dcbc37f5e6c4da4b8e9b559c23;hp=69bd115c4a88243657ce8f92088962f97249dccb;hpb=c6d91a093b2db44e912b356e709d010dfb8ac303;p=model-checker.git diff --git a/threads.h b/threads.h index 69bd115..7a21a30 100644 --- a/threads.h +++ b/threads.h @@ -48,4 +48,14 @@ static inline thread_id_t thrd_to_id(thrd_t t) return t; } +static inline thread_id_t int_to_id(int i) +{ + return i; +} + +static inline int id_to_int(thread_id_t id) +{ + return id; +} + #endif /* __THREADS_H__ */