Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tero Saarni
OpenLDAP
Commits
270ef33a
Commit
270ef33a
authored
13 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#7118, #7133 tentative fix
Move mutexes to end of structs, so libldap can ignore them
parent
19fda82e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/libldap/ldap-int.h
+20
-20
20 additions, 20 deletions
libraries/libldap/ldap-int.h
with
20 additions
and
20 deletions
libraries/libldap/ldap-int.h
+
20
−
20
View file @
270ef33a
...
...
@@ -185,13 +185,6 @@ struct ldapoptions {
#define LDAP_TRASHED_SESSION 0xFF
int
ldo_debug
;
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_t
ldo_mutex
;
#define LDAP_LDO_MUTEX_NULLARG , LDAP_PVT_MUTEX_NULL
#else
#define LDAP_LDO_MUTEX_NULLARG
#endif
#ifdef LDAP_CONNECTIONLESS
#define LDAP_IS_UDP(ld) ((ld)->ld_options.ldo_is_udp)
void
*
ldo_peer
;
/* struct sockaddr* */
...
...
@@ -281,6 +274,13 @@ struct ldapoptions {
ldaplist
*
ldo_conn_cbs
;
LDAP_BOOLEANS
ldo_booleans
;
/* boolean options */
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_t
ldo_mutex
;
#define LDAP_LDO_MUTEX_NULLARG , LDAP_PVT_MUTEX_NULL
#else
#define LDAP_LDO_MUTEX_NULLARG
#endif
};
...
...
@@ -422,19 +422,6 @@ struct ldap_common {
#define ld_requests ldc->ldc_requests
#define ld_responses ldc->ldc_responses
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_t
ldc_msgid_mutex
;
ldap_pvt_thread_mutex_t
ldc_conn_mutex
;
ldap_pvt_thread_mutex_t
ldc_req_mutex
;
ldap_pvt_thread_mutex_t
ldc_res_mutex
;
ldap_pvt_thread_mutex_t
ldc_abandon_mutex
;
#define ld_msgid_mutex ldc->ldc_msgid_mutex
#define ld_conn_mutex ldc->ldc_conn_mutex
#define ld_req_mutex ldc->ldc_req_mutex
#define ld_res_mutex ldc->ldc_res_mutex
#define ld_abandon_mutex ldc->ldc_abandon_mutex
#endif
/* protected by abandon_mutex */
ber_len_t
ldc_nabandoned
;
ber_int_t
*
ldc_abandoned
;
/* array of abandoned requests */
...
...
@@ -463,6 +450,19 @@ struct ldap_common {
/* protected by ldc_mutex */
unsigned
int
ldc_refcnt
;
#define ld_ldcrefcnt ldc->ldc_refcnt
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_t
ldc_msgid_mutex
;
ldap_pvt_thread_mutex_t
ldc_conn_mutex
;
ldap_pvt_thread_mutex_t
ldc_req_mutex
;
ldap_pvt_thread_mutex_t
ldc_res_mutex
;
ldap_pvt_thread_mutex_t
ldc_abandon_mutex
;
#define ld_msgid_mutex ldc->ldc_msgid_mutex
#define ld_conn_mutex ldc->ldc_conn_mutex
#define ld_req_mutex ldc->ldc_req_mutex
#define ld_res_mutex ldc->ldc_res_mutex
#define ld_abandon_mutex ldc->ldc_abandon_mutex
#endif
};
struct
ldap
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment