* cc_file.c (struct _krb5_fcc_data): Add new mutex disk_file_lock and flag
authorKen Raeburn <raeburn@mit.edu>
Mon, 16 Aug 2004 01:27:41 +0000 (01:27 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 16 Aug 2004 01:27:41 +0000 (01:27 +0000)
commit36e3764577f43c41a7fee3022172fc464fcbf902
tree14301353c13dbdab1fdac2bcfb169843629c23a6
parent10b8410a6e9564e76aeb7b178b0c941faaa0f7f9
* cc_file.c (struct _krb5_fcc_data): Add new mutex disk_file_lock and flag
file_is_locked.
(krb5_fcc_close_file): Unlock the mutex and clear the flag.
(krb5_fcc_open_file): Acquire the mutex before locking the file, and set the
flag after.
(krb5_fcc_resolve): Initialize the new mutex and flag.
(krb5_fcc_generate_new): Initialize both mutexes and the flag.
(dereference): Destroy the new mutex.

Also, get rid of some unused variables.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16667 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/cc_file.c