Klaus Demo nginx / 855f4b1
Removed pthread mutex / conditional variables debug messages. These messages doesn't seem to be needed in practice and only make debugging logs harder to read. Maxim Dounin 5 years ago
2 changed file(s) with 0 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
1515
1616 err = pthread_cond_init(cond, NULL);
1717 if (err == 0) {
18 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
19 "pthread_cond_init(%p)", cond);
2018 return NGX_OK;
2119 }
2220
3230
3331 err = pthread_cond_destroy(cond);
3432 if (err == 0) {
35 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
36 "pthread_cond_destroy(%p)", cond);
3733 return NGX_OK;
3834 }
3935
4945
5046 err = pthread_cond_signal(cond);
5147 if (err == 0) {
52 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
53 "pthread_cond_signal(%p)", cond);
5448 return NGX_OK;
5549 }
5650
6559 {
6660 ngx_err_t err;
6761
68 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
69 "pthread_cond_wait(%p) enter", cond);
70
7162 err = pthread_cond_wait(cond, mtx);
7263
7364 #if 0
7566 #endif
7667
7768 if (err == 0) {
78 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
79 "pthread_cond_wait(%p) exit", cond);
8069 return NGX_OK;
8170 }
8271
107107 "pthread_mutexattr_destroy() failed");
108108 }
109109
110 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
111 "pthread_mutex_init(%p)", mtx);
112110 return NGX_OK;
113111 }
114112
125123 return NGX_ERROR;
126124 }
127125
128 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
129 "pthread_mutex_destroy(%p)", mtx);
130126 return NGX_OK;
131127 }
132128
135131 ngx_thread_mutex_lock(ngx_thread_mutex_t *mtx, ngx_log_t *log)
136132 {
137133 ngx_err_t err;
138
139 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
140 "pthread_mutex_lock(%p) enter", mtx);
141134
142135 err = pthread_mutex_lock(mtx);
143136 if (err == 0) {
162155 #endif
163156
164157 if (err == 0) {
165 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0,
166 "pthread_mutex_unlock(%p) exit", mtx);
167158 return NGX_OK;
168159 }
169160