Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Christopher Ng
OpenLDAP
Commits
4a2cda3c
Commit
4a2cda3c
authored
17 years ago
by
Hallvard Furuseth
Browse files
Options
Downloads
Patches
Plain Diff
ITS#5309: complete the addition of ldap_pvt_thread_pool_setkey_x()
parent
8a1f904e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libraries/libldap_r/ldap_thr_debug.h
+2
-2
2 additions, 2 deletions
libraries/libldap_r/ldap_thr_debug.h
libraries/libldap_r/thr_debug.c
+8
-5
8 additions, 5 deletions
libraries/libldap_r/thr_debug.c
libraries/libldap_r/thr_stub.c
+6
-2
6 additions, 2 deletions
libraries/libldap_r/thr_stub.c
with
16 additions
and
9 deletions
libraries/libldap_r/ldap_thr_debug.h
+
2
−
2
View file @
4a2cda3c
...
...
@@ -119,7 +119,7 @@
#define ldap_pvt_thread_pool_resume ldap_int_thread_pool_resume
#define ldap_pvt_thread_pool_destroy ldap_int_thread_pool_destroy
#define ldap_pvt_thread_pool_getkey ldap_int_thread_pool_getkey
#define ldap_pvt_thread_pool_setkey
ldap_int_thread_pool_setkey
#define ldap_pvt_thread_pool_setkey
_x
ldap_int_thread_pool_setkey
_x
#define ldap_pvt_thread_pool_purgekey ldap_int_thread_pool_purgekey
#define ldap_pvt_thread_pool_context ldap_int_thread_pool_context
#define ldap_pvt_thread_pool_context_reset ldap_int_thread_pool_context_reset
...
...
@@ -182,7 +182,7 @@
#undef ldap_pvt_thread_pool_resume
#undef ldap_pvt_thread_pool_destroy
#undef ldap_pvt_thread_pool_getkey
#undef ldap_pvt_thread_pool_setkey
#undef ldap_pvt_thread_pool_setkey
_x
#undef ldap_pvt_thread_pool_purgekey
#undef ldap_pvt_thread_pool_context
#undef ldap_pvt_thread_pool_context_reset
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap_r/thr_debug.c
+
8
−
5
View file @
4a2cda3c
...
...
@@ -1242,16 +1242,19 @@ ldap_pvt_thread_pool_getkey(
}
int
ldap_pvt_thread_pool_setkey
(
ldap_pvt_thread_pool_setkey
_x
(
void
*
xctx
,
void
*
key
,
void
*
data
,
ldap_pvt_thread_pool_keyfree_t
*
kfree
)
ldap_pvt_thread_pool_keyfree_t
*
kfree
,
void
**
olddatap
,
ldap_pvt_thread_pool_keyfree_t
**
oldkfreep
)
{
int
rc
;
ERROR_IF
(
!
threading_enabled
,
"ldap_pvt_thread_pool_setkey"
);
rc
=
ldap_int_thread_pool_setkey
(
xctx
,
key
,
data
,
kfree
);
ERROR_IF
(
rc
,
"ldap_pvt_thread_pool_setkey"
);
ERROR_IF
(
!
threading_enabled
,
"ldap_pvt_thread_pool_setkey_x"
);
rc
=
ldap_int_thread_pool_setkey_x
(
xctx
,
key
,
data
,
kfree
,
olddatap
,
oldkfreep
);
ERROR_IF
(
rc
,
"ldap_pvt_thread_pool_setkey_x"
);
return
rc
;
}
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap_r/thr_stub.c
+
6
−
2
View file @
4a2cda3c
...
...
@@ -200,9 +200,13 @@ int ldap_pvt_thread_pool_getkey (
return
(
0
);
}
int
ldap_pvt_thread_pool_setkey
(
void
*
ctx
,
void
*
key
,
void
*
data
,
ldap_pvt_thread_pool_keyfree_t
*
kfree
)
int
ldap_pvt_thread_pool_setkey_x
(
void
*
ctx
,
void
*
key
,
void
*
data
,
ldap_pvt_thread_pool_keyfree_t
*
kfree
,
void
**
olddatap
,
ldap_pvt_thread_pool_keyfree_t
**
oldkfreep
)
{
if
(
olddatap
)
*
olddatap
=
NULL
;
if
(
oldkfreep
)
*
oldkfreep
=
0
;
return
(
0
);
}
...
...
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