Example #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));
}
Example #2
0
int 
ldap_pvt_thread_rdwr_init( ldap_pvt_thread_rdwr_t *rw )
{
	return pth_rwlock_init( rw ) ? 0 : errno;
}