* prof_int.h: Define USE_PTHREADS and include pthread.h if on MacOS X.
authorKen Raeburn <raeburn@mit.edu>
Sat, 21 Dec 2002 04:28:06 +0000 (04:28 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 21 Dec 2002 04:28:06 +0000 (04:28 +0000)
commitbc38f344018bfa66182dd58401c4ed83a4fbd6e6
tree885154a33be98eb20778c64ba8a421917dec7182
parent7c28091d5daeb6431e6e76aeeca9ba1d33665d66
* 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.

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