diff options
Diffstat (limited to 'src/nxt_thread_id.h')
-rw-r--r-- | src/nxt_thread_id.h | 12 |
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) /* |