[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
about ldap_pvt_thread_mutex_lock() function...
- To: openldap-devel@OpenLDAP.org
- Subject: about ldap_pvt_thread_mutex_lock() function...
- From: Alan Low <alan@tls.com.sg>
- Date: Fri, 05 Jan 2001 15:24:27 +0800
- Organization: Total Linux Solutions Private Limited
- User-agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; m18) Gecko/20001107 Netscape6/6.0
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