Files
interactive/gms/KT/new_sh_statusd/include/pre_thread_model.h
T
2026-08-07 17:38:18 +09:00

28 lines
809 B
C

#ifndef __PRE_THREAD_MODEL_H__
#define __PRE_THREAD_MODEL_H__
#include "protocol.h"
typedef struct {
pthread_t thread_tid; /* thread ID */
int deadORalive; /* is thread dead */
long thread_count; /* # connections handled */
} Thread;
Thread *vrcd_tptr, *report_tptr; /* array of Thread structures; calloc'ed */
servinfo_t *g_servinfo;
socklen_t vrcd_addrlen, report_addrlen;
pthread_mutex_t vrcd_lock, vrcd_lock2, report_s_lock, report_u_lock;
rcacct_t *g_rcacct;
struct sembuf waitop;
struct sembuf postop;
int sem_id;
int check_semid;
int report_semid;
int vrcd_semid;
int vrcdfd, vrcd_threads;
int update_reportfd, send_reportfd, report_threads;
long running_vrcd_thread_count;
#endif