view src/event/ngx_event_posted.c @ 5820:3377f9459e99

Events: removed broken thread support from posted events. It's mostly dead code. And the idea of thread support for this task has been deprecated.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 01 Sep 2014 18:20:03 +0400
parents d620f497c50f
children 3f5f0ab59b35
line wrap: on
line source


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>


ngx_event_t  *ngx_posted_accept_events;
ngx_event_t  *ngx_posted_events;


void
ngx_event_process_posted(ngx_cycle_t *cycle, ngx_event_t **posted)
{
    ngx_event_t  *ev;

    for ( ;; ) {

        ev = *posted;

        ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
                      "posted event %p", ev);

        if (ev == NULL) {
            return;
        }

        ngx_delete_posted_event(ev);

        ev->handler(ev);
    }
}