Back to index

php5  5.3.10
fpm_status.h
Go to the documentation of this file.
00001 
00002        /* $Id: fpm_status.h 312263 2011-06-18 17:46:16Z felipe $ */
00003        /* (c) 2009 Jerome Loyet */
00004 
00005 #ifndef FPM_STATUS_H
00006 #define FPM_STATUS_H 1
00007 #include "fpm_worker_pool.h"
00008 #include "fpm_shm.h"
00009 
00010 #define FPM_STATUS_BUFFER_SIZE 512
00011 
00012 struct fpm_status_s {
00013        int pm;
00014        int idle;
00015        int active;
00016        int total;
00017        unsigned cur_lq;
00018        int max_lq;
00019        unsigned long int accepted_conn;
00020        unsigned int max_children_reached;
00021        struct timeval last_update;
00022 };
00023 
00024 int fpm_status_init_child(struct fpm_worker_pool_s *wp);
00025 void fpm_status_update_activity(struct fpm_shm_s *shm, int idle, int active, int total, unsigned cur_lq, int max_lq, int clear_last_update);
00026 void fpm_status_update_accepted_conn(struct fpm_shm_s *shm, unsigned long int accepted_conn);
00027 void fpm_status_increment_accepted_conn(struct fpm_shm_s *shm);
00028 void fpm_status_set_pm(struct fpm_shm_s *shm, int pm);
00029 void fpm_status_update_max_children_reached(struct fpm_shm_s *shm, unsigned int max_children_reached);
00030 void fpm_status_increment_max_children_reached(struct fpm_shm_s *shm);
00031 int fpm_status_handle_request(TSRMLS_D);
00032 
00033 extern struct fpm_shm_s *fpm_status_shm;
00034 
00035 #endif