projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
threads: add id_to_int() and int_to_id() inline functions
[c11tester.git]
/
threads.h
diff --git
a/threads.h
b/threads.h
index 69bd115c4a88243657ce8f92088962f97249dccb..7a21a30d8d93f49e4e0c13d37dfeb18f21260b47 100644
(file)
--- a/
threads.h
+++ b/
threads.h
@@
-48,4
+48,14
@@
static inline thread_id_t thrd_to_id(thrd_t t)
return 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__ */
#endif /* __THREADS_H__ */