pthread07.h 250 B

12345678910
  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. int listenfd, nthreads;
  7. socklen_t addrlen;
  8. pthread_mutex_t mlock;