diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-08-01 18:09:42 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-08-01 18:09:42 +0300 |
commit | d78a58be5fa2385987a3141ccbe942107332e677 (patch) | |
tree | e707a46376a1d81f0686eab6ae40d5b20f4236a2 /configure.ac | |
parent | c89e3c137238963b737ccb207c01394c430428b6 (diff) | |
download | vmod-tbf-d78a58be5fa2385987a3141ccbe942107332e677.tar.gz vmod-tbf-d78a58be5fa2385987a3141ccbe942107332e677.tar.bz2 |
Serialize read/write accesses.
* src/tbf.c (keylock): New struct.
(keylock_head, keylock_avail): New statics.
(keylock_find, keylock_find_safe)
(keylock_remove_safe): New functions.
(tbf_open): Rename to tbf_open_safe.
(tbf_open_internal): Rename to tbf_open.
(vmod_rate): Rewrite using keylocks to
ensure the record is not modified by another
thread between calls to get and push.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions