* prof_int.h (struct _prf_data_t): Add a mutex.
authorKen Raeburn <raeburn@mit.edu>
Fri, 27 Aug 2004 19:41:53 +0000 (19:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 27 Aug 2004 19:41:53 +0000 (19:41 +0000)
commitb06c64321b0cef679623d264f19ba64e625d1f32
treec403a6222c83742189e104bde53463fd56d660c5
parentc226f8300720e781dd43bebe5afadf8f9b66d28b
* prof_int.h (struct _prf_data_t): Add a mutex.
* prof_file.c (profile_open_file): Initialize data mutex.
(profile_update_file_data, profile_flush_file_data): Lock it while manipulating
file data.
(profile_lock_global, profile_unlock_global): New functions.
* prof_set.c (rw_setup): Acquire global lock while checking flags and adjusting
ref count.
(profile_update_relation, profile_rename_section, profile_add_relation): Lock
data mutex while manipulating profile data.
* prof_tree.c (profile_node_iterator): Do more magic number tests.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16689 dc483132-0cff-0310-8789-dd5450dbe970
src/util/profile/ChangeLog
src/util/profile/prof_file.c
src/util/profile/prof_int.h
src/util/profile/prof_set.c
src/util/profile/prof_tree.c