summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-07-27 16:57:45 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-07-27 16:57:45 +0300
commit12c890c1ca09bdd77fd653d247b13f1c22ea3f0a (patch)
tree9013caff1ebc396abadfe5305bb8700135ea7ff4
parent7e41f9d1081ff0c5c335da4ae21f0d76c7d8edc9 (diff)
downloadunit-12c890c1ca09bdd77fd653d247b13f1c22ea3f0a.tar.gz
unit-12c890c1ca09bdd77fd653d247b13f1c22ea3f0a.tar.bz2
Added OpenBSD 3.9 getthrid().
Prodded by David Carlier.
-rw-r--r--src/nxt_thread_id.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nxt_thread_id.h b/src/nxt_thread_id.h
index eba191ea..3263a47a 100644
--- a/src/nxt_thread_id.h
+++ b/src/nxt_thread_id.h
@@ -80,6 +80,18 @@ nxt_thread_get_tid(void)
* return pthread_mach_thread_np(pthread_self());
*/
+#elif (NXT_OPENBSD)
+
+typedef pid_t nxt_tid_t;
+
+/* OpenBSD 3.9 getthrid(). */
+
+nxt_inline nxt_tid_t
+nxt_thread_get_tid(void)
+{
+ return getthrid();
+}
+
#elif (NXT_AIX)
/*