Public Attributes | |
map< const string, file *, ltstr > | files |
pthread_mutex_t | mutex |
At this time, we assume that the repository consist of 27 sections:
To each section has been associated a mutual exclusion semaphore, this will avoid consistency loss due to cuncurrent access to the same map structure.
Definition at line 78 of file repository.h.
Definition at line 79 of file repository.h.
Referenced by repository_class::add_file(), repository_class::obtain_file(), repository_class::release_file(), repository_class::remove_file(), and repository_class::wait_file().
pthread_mutex_t repository_class::repository_class::section::mutex |