484
484
: Scheduler(name_arg), sessions_need_adding(), sessions_to_be_killed(),
485
485
sessions_need_processing(), sessions_waiting_for_io()
490
487
/* Setup attribute parameter for session threads. */
491
488
(void) pthread_attr_init(&attr);
492
489
(void) pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
493
490
pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
498
492
pthread_mutex_init(&LOCK_session_add, NULL);
499
493
pthread_mutex_init(&LOCK_session_kill, NULL);
500
494
pthread_mutex_init(&LOCK_event_loop, NULL);