mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-19 16:13:43 +00:00
Implements hash tables rwlocks
This commit is contained in:
parent
d74e4b4aa6
commit
2fc7144eb6
14 changed files with 115 additions and 51 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue