pthread08.h 293 B

1234567891011
  1. typedef struct {
  2. pthread_t thread_tid; /* thread ID */
  3. long thread_count; /* # connections handled */
  4. } Thread;
  5. Thread *tptr; /* array of Thread structures; calloc'ed */
  6. #define MAXNCLI 32
  7. int clifd[MAXNCLI], iget, iput;
  8. pthread_mutex_t clifd_mutex;
  9. pthread_cond_t clifd_cond;