[Date Prev][Date Next] [Chronological] [Thread] [Top]

about ldap_pvt_thread_mutex_lock() function...



Hi,

I am wondering about the function "ldap_pvt_thread_mutex_lock". It is written with 2 lines:

int ldap_pvt_thread_mutex_lock( ldap_pvt_thread_mutex_t *mutex )
{
          pth_init();
          return( pth_mutex_acquire( mutex, 0, NULL) );
}

Why do we need to call pth_init() everytime we want to acquires amutex??

--
Best Regards
Alan Low