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