scoreboard.h revision 06c00b916f98db485ab8f386ae0417e8b08a93e9
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering/* Licensed to the Apache Software Foundation (ASF) under one or more
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * contributor license agreements. See the NOTICE file distributed with
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * this work for additional information regarding copyright ownership.
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * The ASF licenses this file to You under the Apache License, Version 2.0
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * (the "License"); you may not use this file except in compliance with
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * the License. You may obtain a copy of the License at
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * http://www.apache.org/licenses/LICENSE-2.0
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * Unless required by applicable law or agreed to in writing, software
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * distributed under the License is distributed on an "AS IS" BASIS,
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * See the License for the specific language governing permissions and
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * limitations under the License.
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering * @brief Apache scoreboard library
#ifdef HAVE_SYS_TIMES_H
#include "ap_config.h"
#include "http_config.h"
#include "apr_thread_proc.h"
#include "apr_portable.h"
#include "apr_shm.h"
#include "apr_optional.h"
#ifndef DEFAULT_SCOREBOARD
#define SERVER_DEAD 0
typedef int ap_generation_t;
struct worker_score {
#if APR_HAS_THREADS
int thread_num;
unsigned char status;
unsigned short conn_count;
unsigned long access_count;
unsigned long my_access_count;
#ifdef HAVE_TIMES
int server_limit;
int thread_limit;
} global_score;
struct process_score {
} scoreboard;
int thread_num);
/* for time_process_request() in http_main.c */
#ifdef __cplusplus