Implements hash tables rwlocks

This commit is contained in:
Simone Mainardi 2019-10-04 17:06:24 +02:00
parent d74e4b4aa6
commit 2fc7144eb6
14 changed files with 115 additions and 51 deletions

View file

@ -38,7 +38,7 @@ VirtualHost* VirtualHostHash::get(char *key) {
} else {
VirtualHost *head;
locks[hash]->lock(__FILE__, __LINE__);
locks[hash]->wrlock(__FILE__, __LINE__);
head = (VirtualHost*)table[hash];
while(head != NULL) {