Added an allocator function to allocate the hash in shared memory.
Added also locking stuff

Pre-Submission Checklist

Type Of Change

Checklist:

Description

Added a new allocator function to str_hash.h. This new function allows to allocate the hash table in shared memory.

Changes to struct str_hash_table:

Changes to struct str_hash_head:

Changes to struct str_hash_entry:

Added functions to lock and unlock the head when needed.

Modified functions str_hash_add and str_hash_get to lock the head when needed

Added function str_hash_destroy to remove the hash table and all its contents from memory.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1535

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.