15 static void ngx_event_busy_lock_handler(
ngx_event_t *ev);
16 static void ngx_event_busy_lock_posted_handler(
ngx_event_t *ev);
34 "event busy lock: b:%d mb:%d",
76 rc = ngx_event_busy_lock_look_cacheable(bl, ctx);
79 "event busy lock: %d w:%d mw:%d",
136 if (wakeup == NULL) {
142 for (wakeup = bl->
events; wakeup; wakeup = wakeup->
next) {
143 if (wakeup->
md5 == NULL || wakeup->
slot != ctx->
slot) {
147 wakeup->
handler = ngx_event_busy_lock_posted_handler;
162 wakeup->
handler = ngx_event_busy_lock_posted_handler;
215 #if (NGX_SUPPRESS_WARN)
219 for (i = 0; i < bl->
max_busy; i++) {
221 if ((bit & 7) == 0) {
233 }
else if (free == -1) {
238 if (free == -1 && cacheable < bl->max_busy) {
260 bl->
md5_mask[free / 8] |= 1 << (free & 7);
273 ev->
handler = ngx_event_busy_lock_posted_handler;
280 ngx_event_busy_lock_posted_handler(
ngx_event_t *ev)