scoreboard.h revision 3d96ee83babeec32482c9082c9426340cee8c44d
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering/* ====================================================================
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * The Apache Software License, Version 1.1
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * Copyright (c) 2000 The Apache Software Foundation. All rights
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * Redistribution and use in source and binary forms, with or without
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * modification, are permitted provided that the following conditions
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * 1. Redistributions of source code must retain the above copyright
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * notice, this list of conditions and the following disclaimer.
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * 2. Redistributions in binary form must reproduce the above copyright
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * notice, this list of conditions and the following disclaimer in
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * the documentation and/or other materials provided with the
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * distribution.
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * 3. The end-user documentation included with the redistribution,
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * if any, must include the following acknowledgment:
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * "This product includes software developed by the
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * Apache Software Foundation (http://www.apache.org/)."
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * Alternately, this acknowledgment may appear in the software itself,
839a4a20d8b4f6ebf3a342fd05c821358be5a313Lennart Poettering * if and wherever such third-party acknowledgments normally appear.
dd0bc0f1414cc1d0fa73a29470bd14944e4942d3Lennart Poettering * 4. The names "Apache" and "Apache Software Foundation" must
dd0bc0f1414cc1d0fa73a29470bd14944e4942d3Lennart Poettering * not be used to endorse or promote products derived from this
dd0bc0f1414cc1d0fa73a29470bd14944e4942d3Lennart Poettering * software without prior written permission. For written
dd0bc0f1414cc1d0fa73a29470bd14944e4942d3Lennart Poettering * permission, please contact apache@apache.org.
#ifndef APACHE_SCOREBOARD_H
#define APACHE_SCOREBOARD_H
#include <pthread.h>
#ifdef __cplusplus
#ifdef HAVE_SYS_TIMES_H
#include <time.h>
#if defined(USE_MEM_BASED_SCOREBOARD)
#define OPTIMIZE_TIMEOUTS
#define SERVER_DEAD 0
typedef unsigned vtime_t;
typedef int ap_generation_t;
#ifdef OPTIMIZE_TIMEOUTS
unsigned char status;
unsigned long access_count;
unsigned long bytes_served;
unsigned long my_access_count;
unsigned long my_bytes_served;
unsigned long conn_bytes;
unsigned short conn_count;
#ifdef HAVE_TIMES
#ifndef OPTIMIZE_TIMEOUTS
} thread_score;
} global_score;
int worker_threads;
#ifdef OPTIMIZE_TIMEOUTS
} parent_score;
} scoreboard;
#ifdef TPF
void update_scoreboard_global(void);
/* for time_process_request() in http_main.c */
#ifdef __cplusplus