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

(ITS#6672) OpenLDAP LDAP_R_COMPILE cleanup (LDAP_MUTEX_LOCK/LDAP_MUTEX_UNLOCK)



Full_Name: Douglas Leavitt
Version: HEAD
OS: OpenSolaris
URL: http://cr.opensolaris.org/~djl/openldap-patch2/
Submission from: (NULL) (192.18.43.225)


This patch is part 2 of 3 of the original ITS #6625 effort.
(aka openldap draft-zeilenga-ldap-c-api-concurrency)

As discussed on openldap-devel@openldap.org, #6625 is to be split into 3
distinct patches.

This patch cleans up much of the LDAP_R_COMPILE ifdefs in libldap.
The patch converts almost all

#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_[un]lock(...)
#endif

sequences to simpler
LDAP_MUTEX_[UN]LOCK macros.

No behavioral changes are introduced by this patch.  It is strictly a
code cleanup patch.

Regression testing (post conversion) performed using both
32-bit and 64-bit x86 compiles on an OpenSolaris system.

IPR Notice

This patch file is derived from OpenLDAP Software. All of the modifications to
OpenLDAP Software represented in the following patch(es) were developed
by Oracle Corporation.  Oracle Corporation has not assigned rights and/or
interest in this work to any party. I, Douglas Leavitt am authorized by Oracle
Corporation, my employer, to release this work under the following terms.