mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 00:57:00 +00:00
Implements hash tables rwlocks
This commit is contained in:
parent
d74e4b4aa6
commit
2fc7144eb6
14 changed files with 115 additions and 51 deletions
|
|
@ -45,7 +45,7 @@ AutonomousSystem* AutonomousSystemHash::get(IpAddress *ipa, bool is_inline_call,
|
|||
AutonomousSystem *head;
|
||||
|
||||
if(!is_inline_call)
|
||||
locks[hash]->lock(__FILE__, __LINE__);
|
||||
locks[hash]->rdlock(__FILE__, __LINE__);
|
||||
|
||||
head = (AutonomousSystem*)table[hash];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue