Mercurial > hg > nginx
diff src/os/unix/ngx_thread.h @ 379:73688d5d7fc3
nginx-0.0.7-2004-07-06-20:12:16 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 06 Jul 2004 16:12:16 +0000 |
parents | d0451e402e27 |
children | 5ce6561246a5 |
line wrap: on
line diff
--- a/src/os/unix/ngx_thread.h Mon Jul 05 19:53:02 2004 +0000 +++ b/src/os/unix/ngx_thread.h Tue Jul 06 16:12:16 2004 +0000 @@ -27,6 +27,12 @@ #define TID_T_FMT PTR_FMT +#define ngx_thread_create_tls() pthread_key_create(0, NULL) +#define ngx_thread_create_tls_n "pthread_key_create(0, NULL)" +#define ngx_thread_get_tls() pthread_getspecific(0) +#define ngx_thread_set_tls(v) pthread_setspecific(0, v) + + #define NGX_MUTEX_LIGHT 0 typedef struct { @@ -106,4 +112,10 @@ #endif +typedef struct { + ngx_event_t *event; +} ngx_tls_t; + + + #endif /* _NGX_THREAD_H_INCLUDED_ */