Module Name: krb5 Committed By: raeburn Date: Sat Dec 21 04:28:06 UTC 2002 Modified Files: krb5/src/util/profile/ChangeLog krb5/src/util/profile/prof_file.c krb5/src/util/profile/prof_int.h Added Files: Removed Files: Log Message * prof_int.h: Define USE_PTHREADS and include pthread.h if on MacOS X. (struct global_shared_profile_data) [USE_PTHREADS]: Add a mutex. (g_shared_trees_mutex) [USE_PTHREADS]: New macro, references the global mutex. (prof_mutex_lock, prof_mutex_unlock) [SHARE_TREE_DATA]: Define to use pthread functions or do nothing. (profile_free_file_data): Delete declaration. (profile_dereference_data): Declare. * prof_file.c (profile_free_file_data): Now static. (profile_open_file, profile_dereference_data) [SHARE_TREE_DATA]: Grab lock while manipulating global data list or its contents. To generate a diff of this commit: cvs diff -r1.120 -r1.121 krb5/src/util/profile/ChangeLog cvs diff -r1.24 -r1.25 krb5/src/util/profile/prof_file.c cvs diff -r1.25 -r1.26 krb5/src/util/profile/prof_int.h