scoreboard.h revision b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering/* ====================================================================
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * Copyright (c) 1995-1999 The Apache Group. All rights reserved.
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * Redistribution and use in source and binary forms, with or without
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * modification, are permitted provided that the following conditions
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * 1. Redistributions of source code must retain the above copyright
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * notice, this list of conditions and the following disclaimer.
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * 2. Redistributions in binary form must reproduce the above copyright
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * notice, this list of conditions and the following disclaimer in
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering * the documentation and/or other materials provided with the
* for use in the Apache HTTP server project (http://www.apache.org/)."
* for use in the Apache HTTP server project (http://www.apache.org/)."
* project, please see <http://www.apache.org/>.
#ifndef APACHE_SCOREBOARD_H
#define APACHE_SCOREBOARD_H
#include <pthread.h>
#ifdef __cplusplus
#ifndef WIN32
#ifdef TPF
#include <time.h>
#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;
#if defined(NO_GETTIMEOFDAY)
#ifndef NO_TIMES
#ifndef OPTIMIZE_TIMEOUTS
} thread_score;
} global_score;
int worker_threads;
#ifdef OPTIMIZE_TIMEOUTS
} parent_score;
} scoreboard;
#ifdef TPF
void cleanup_scoreboard(void);
#if defined(USE_OS2_SCOREBOARD)
static void cleanup_shared_mem(void *d);
void update_scoreboard_global(void);
/* for time_process_request() in http_main.c */
#ifdef __cplusplus