diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2004-10-30 00:56:30 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2004-10-30 00:56:30 +0000 |
| commit | 78a29e652aeb95c0853c14c9ad4c44fc7952aff9 (patch) | |
| tree | eea3a4c08e9745e96e63490f7a49bee3429894c4 /src/lib/crypto/ChangeLog | |
| parent | d77e27a7e5b2bc52b06fb867e4e28826b1d50ebe (diff) | |
| download | krb5-78a29e652aeb95c0853c14c9ad4c44fc7952aff9.tar.gz krb5-78a29e652aeb95c0853c14c9ad4c44fc7952aff9.tar.xz krb5-78a29e652aeb95c0853c14c9ad4c44fc7952aff9.zip | |
push yarrow locking down into the yarrow code to reduce contention
This seems to speed up creating a krb5_context a little bit, when it happens
a lot in multiple threads.
* prng.c (yarrow_lock): Rename to krb5int_yarrow_lock via macro, and change to
be non-static.
(krb5int_prng_init): Call do_yarrow_init here.
(krb5_c_random_add_entropy): Don't call it here. Don't lock the mutex, either.
(krb5_c_random_make_octets): Don't lock the mutex.
* yarrow/ylock.h: Include k5-thread.h.
(krb5int_yarrow_lock): Declare.
(LOCK, UNLOCK): Define as macros using the k5_mutex_ macros.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16846 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/ChangeLog')
| -rw-r--r-- | src/lib/crypto/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index c28350461..b929e89d7 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,12 @@ +2004-10-29 Ken Raeburn <raeburn@mit.edu> + + * prng.c (yarrow_lock): Rename to krb5int_yarrow_lock via macro, + and change to be non-static. + (krb5int_prng_init): Call do_yarrow_init here. + (krb5_c_random_add_entropy): Don't call it here. Don't lock the + mutex, either. + (krb5_c_random_make_octets): Don't lock the mutex. + 2004-06-16 Ken Raeburn <raeburn@mit.edu> * Makefile.in (MAC_SUBDIRS): Don't set. |
