summaryrefslogtreecommitdiffabout
path: root/tests/test03.vtc
authorSergey Poznyakoff <gray@gnu.org.ua>2013-08-01 15:09:42 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-08-01 15:09:42 (GMT)
commitd78a58be5fa2385987a3141ccbe942107332e677 (patch) (side-by-side diff)
treee707a46376a1d81f0686eab6ae40d5b20f4236a2 /tests/test03.vtc
parentc89e3c137238963b737ccb207c01394c430428b6 (diff)
downloadvmod-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 'tests/test03.vtc') (more/less context) (ignore whitespace changes)
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.