Module Name: krb5 Committed By: raeburn Date: Sat May 1 01:43:15 UTC 2004 Modified Files: krb5/src/lib/krb5/rcache/ChangeLog krb5/src/lib/krb5/rcache/rc_base.c krb5/src/lib/krb5/rcache/rc_dfl.c Added Files: Removed Files: Log Message Use the new mutex in the replay cache structure. Rather coarse at the moment: While one thread is blocking waiting for data to be flushed to disk, another thread is unnecessarily prevented from scanning the in-memory data. * rc_base.c (krb5_rc_resolve_type): Initialize the mutex in the replay cache structure. (krb5_rc_default, krb5_rc_resolve_full): Destroy it if creation of the replay cache fails. * rc_dfl.c (krb5_rc_dfl_get_span, krb5_rc_dfl_init): Lock the mutex while operating on the replay cache object. (krb5_rc_dfl_expunge_locked): Renamed from krb5_rc_dfl_expunge and made static. Call krb5_rc_dfl_recover_locked. (krb5_rc_dfl_expunge): New wrapper function, locks the mutex. (krb5_rc_dfl_recover_locked): Renamed from krb5_rc_dfl_recover and made static. Call krb5_rc_dfl_expunge_locked. (krb5_rc_dfl_recover): New wrapper function, locks the mutex. (krb5_rc_dfl_store): Lock the mutex. Call _expunge_locked. To generate a diff of this commit: cvs diff -r5.73 -r5.74 krb5/src/lib/krb5/rcache/ChangeLog cvs diff -r5.16 -r5.17 krb5/src/lib/krb5/rcache/rc_base.c cvs diff -r5.43 -r5.44 krb5/src/lib/krb5/rcache/rc_dfl.c