예제 #1
0
/* Helper to do the cache locking.  */
static void
init_cache_lock (void)
{
  if (!pth_rwlock_init (&cert_cache_lock))
    log_fatal (_("can't initialize certificate cache lock: %s\n"),
	       strerror (errno));
}
예제 #2
0
파일: thr_pth.c 프로젝트: cptaffe/openldap
int 
ldap_pvt_thread_rdwr_init( ldap_pvt_thread_rdwr_t *rw )
{
	return pth_rwlock_init( rw ) ? 0 : errno;
}