Lines Matching refs:chg

64 static chg_info_t chg = { DEFAULTMUTEX, DEFAULTCV, 0, NULL, NULL, NULL, 0 };  variable
185 waiting_list_cleanup(chg_info_t *chg, thread_t tid) in waiting_list_cleanup() argument
189 rc = waiting_list_delete(chg, tid); in waiting_list_cleanup()
191 if (rc == CHG_SUCCESS && chg->chg_w_first == NULL) { in waiting_list_cleanup()
192 free(chg->chg_data); in waiting_list_cleanup()
193 chg->chg_data = NULL; in waiting_list_cleanup()
194 chg->chg_wakeup = 0; in waiting_list_cleanup()
340 (void) mutex_lock(&chg.chg_lock); in chg_get_statusChange()
343 rc = waiting_list_add(&chg, nscd_pid, this_tid, &wl); in chg_get_statusChange()
346 while (!chg.chg_wakeup) { in chg_get_statusChange()
352 (void) cond_wait(&chg.chg_cv, in chg_get_statusChange()
353 &chg.chg_lock); in chg_get_statusChange()
360 chg.chg_data_size)) == NULL) { in chg_get_statusChange()
364 chg.chg_data, in chg_get_statusChange()
365 chg.chg_data_size); in chg_get_statusChange()
366 info->len = chg.chg_data_size; in chg_get_statusChange()
369 waiting_list_cleanup(&chg, this_tid); in chg_get_statusChange()
371 (void) mutex_unlock(&chg.chg_lock); in chg_get_statusChange()
412 (void) mutex_lock(&chg.chg_lock); in chg_notify_statusChange()
413 if (chg.chg_w_first != NULL && chg.chg_wakeup == 0) { in chg_notify_statusChange()
415 if (chg.chg_data) { in chg_notify_statusChange()
416 free(chg.chg_data); in chg_notify_statusChange()
417 chg.chg_data = NULL; in chg_notify_statusChange()
420 chg.chg_data = str; in chg_notify_statusChange()
423 chg.chg_data_size = sizeof (ldap_get_change_out_t); in chg_notify_statusChange()
426 chg.chg_data_size = sizeof (ldap_get_change_out_t) - in chg_notify_statusChange()
429 chg.chg_wakeup = 1; in chg_notify_statusChange()
430 (void) cond_broadcast(&chg.chg_cv); in chg_notify_statusChange()
432 (void) mutex_unlock(&chg.chg_lock); in chg_notify_statusChange()
514 cleanup_threads(chg_info_t *chg, pid_t pid, cleanup_type_t type) in cleanup_threads() argument
516 (void) mutex_lock(&chg->chg_lock); in cleanup_threads()
518 waiting_list_set_cleanup(chg, pid); in cleanup_threads()
523 (void) cond_broadcast(&chg->chg_cv); in cleanup_threads()
524 (void) mutex_unlock(&chg->chg_lock); in cleanup_threads()
551 cleanup_threads(&chg, pid, type); in chg_cleanup_waiting_threads()