diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2004-07-23 15:29:53 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2004-07-23 15:29:53 +0000 |
| commit | 20226b353004a566349dae8b1c5a4b1a403b5e72 (patch) | |
| tree | 5e6a00672acc8418e4a9a58ede960adc1a2dafea /src/include/ChangeLog | |
| parent | 38cd10852cbaec3a4129c5de73bd08e3c1aa0ef3 (diff) | |
| download | krb5-20226b353004a566349dae8b1c5a4b1a403b5e72.tar.gz krb5-20226b353004a566349dae8b1c5a4b1a403b5e72.tar.xz krb5-20226b353004a566349dae8b1c5a4b1a403b5e72.zip | |
Add a mutex to protect the per-process fake-getaddrinfo data cache.
Currently it gets locked while a name lookup is in progress, which is not very
efficient. That should be changed, after the code is fixed up so that the
cache works on other platforms.
* include/fake-addrinfo.h: Include k5-thread.h.
(struct fac): Add a mutex.
(plant_face, find_face): Check that mutex is already locked.
(krb5int_lock_fac, krb5int_unlock_fac): Declare.
(fai_add_hosts_by_name): Use them to lock and unlock the mutex.
* util/support/fake-addrinfo.c (krb5int_fac): Initialize the mutex.
(krb5int_init_fac, krb5int_fini_fac): New functions; finish initializing or
destroy the mutex.
(krb5int_lock_fac, krb5int_unlock_fac): New functions; lock the mutex after
calling krb5int_call_thread_support_init, or unlock it.
* util/support/threads.c (krb5int_call_thread_support_init): New function.
(krb5int_init_fac, krb5int_fini_fac): Declare.
(krb5int_thread_support_init, krb5int_thread_support_fini): Call them.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16622 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/ChangeLog')
| -rw-r--r-- | src/include/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 6bf9b88a6..103d4d7d7 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,11 @@ +2004-07-23 Ken Raeburn <raeburn@mit.edu> + + * fake-addrinfo.h: Include k5-thread.h. + (struct fac): Add a mutex. + (plant_face, find_face): Check that mutex is already locked. + (krb5int_lock_fac, krb5int_unlock_fac): Declare. + (fai_add_hosts_by_name): Use them to lock and unlock the mutex. + 2004-07-22 Ken Raeburn <raeburn@mit.edu> * configure.in: Look for "struct lifconf" and maybe define |
