Module Name: krb5 Committed By: raeburn Date: Sat Oct 30 00:56:30 UTC 2004 Modified Files: krb5/src/lib/crypto/ChangeLog krb5/src/lib/crypto/prng.c krb5/src/lib/crypto/yarrow/ChangeLog krb5/src/lib/crypto/yarrow/ylock.h Added Files: Removed Files: Log Message ticket: new subject: 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. To generate a diff of this commit: cvs diff -r5.168 -r5.169 krb5/src/lib/crypto/ChangeLog cvs diff -r5.20 -r5.21 krb5/src/lib/crypto/prng.c cvs diff -r1.17 -r1.18 krb5/src/lib/crypto/yarrow/ChangeLog cvs diff -r1.3 -r1.4 krb5/src/lib/crypto/yarrow/ylock.h