Skip to content

Commit

Permalink
nginx-0.0.2-2004-03-02-18:40:59 import
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsysoev committed Mar 2, 2004
1 parent b9956ee commit ea0b1d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions auto/configure
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh

. auto/options
. auto/init
Expand Down
4 changes: 2 additions & 2 deletions src/event/ngx_event_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ ngx_mutex_t *ngx_event_timer_mutex;
#endif


volatile ngx_rbtree_t *ngx_event_timer_rbtree;
ngx_rbtree_t ngx_event_timer_sentinel;
ngx_thread_volatile ngx_rbtree_t *ngx_event_timer_rbtree;
ngx_rbtree_t ngx_event_timer_sentinel;


ngx_int_t ngx_event_timer_init(ngx_log_t *log)
Expand Down
4 changes: 2 additions & 2 deletions src/event/ngx_event_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ extern ngx_mutex_t *ngx_event_timer_mutex;
#endif


extern volatile ngx_rbtree_t *ngx_event_timer_rbtree;
extern ngx_rbtree_t ngx_event_timer_sentinel;
extern ngx_thread_volatile ngx_rbtree_t *ngx_event_timer_rbtree;
extern ngx_rbtree_t ngx_event_timer_sentinel;


ngx_inline static void ngx_event_del_timer(ngx_event_t *ev)
Expand Down
4 changes: 4 additions & 0 deletions src/os/unix/ngx_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#if (NGX_THREADS)

#define ngx_thread_volatile volatile

#if (NGX_USE_RFORK)

#include <sys/ipc.h>
Expand Down Expand Up @@ -96,6 +98,8 @@ extern ngx_int_t ngx_threaded;

#else /* !NGX_THREADS */

#define ngx_thread_volatile

#define ngx_log_tid 0
#define TID_T_FMT "%d"

Expand Down

0 comments on commit ea0b1d9

Please sign in to comment.