This commit is contained in:
biosvos
2026-08-07 17:38:18 +09:00
commit 873193a243
9613 changed files with 2755992 additions and 0 deletions
@@ -0,0 +1,27 @@
#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