httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: cvs commit: apache-2.0/mpm/src/main iol_unix.c Makefile.tmpl buff.c http_connection.c http_protocol.c http_request.c
Date Sat, 19 Jun 1999 19:51:20 GMT
No, I'm on crack.  We don't need that complexity... here's what I'm going
to play with: 

typedef struct ap_bufel ap_bufel;
struct ap_bufel {
    ap_bufel *next;
    char *start;                        /* first byte */
    char *end;                          /* last byte + 1 */
    void (*free)(ap_bufel *e);          /* never NULL */
    void *data;                         /* for use by free() */
};

typedef struct ap_buf ap_buf;
struct ap_buf {
    ap_bufel *head;
    ap_bufel **tail;
};

For example, for shared mmap caches, the mutex/ref_count stuff can be done
by the free() function. 

Dean


Mime
View raw message