diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-05-29 07:00:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-05-29 07:00:16 +0000 |
commit | 9636a217e4a0a73113ffdaa9a2f0c8d1749cf1d9 (patch) | |
tree | eb310947247d941a4c71ca880fd1a9a132c8c4a0 /nscd/nscd.h | |
parent | ab50b2ec0193ad37c73d34c0e98ff16486af237e (diff) | |
download | glibc-9636a217e4a0a73113ffdaa9a2f0c8d1749cf1d9.zip glibc-9636a217e4a0a73113ffdaa9a2f0c8d1749cf1d9.tar.gz glibc-9636a217e4a0a73113ffdaa9a2f0c8d1749cf1d9.tar.bz2 |
* nscd/nscd.h (struct database_dyn): Add prunelock field.
* nscd/cache.c (prune_cache): Take prunelock before starting the
work. Just return in case it is already taken.
(inet6_option_alloc): Now a simple wrapper around option_alloc.
Diffstat (limited to 'nscd/nscd.h')
-rw-r--r-- | nscd/nscd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h index 8b95630..4a95472 100644 --- a/nscd/nscd.h +++ b/nscd/nscd.h @@ -58,6 +58,7 @@ typedef enum struct database_dyn { pthread_rwlock_t lock; + pthread_mutex_t prunelock; int enabled; int check_file; |