haproxy/include
Christopher Faulet 94b712337d MEDIUM: threads/freq_ctr: Make the frequency counters thread-safe
When a frequency counter must be updated, we use the curr_sec/curr_tick fields
as a lock, by setting the MSB to 1 in a compare-and-swap to lock and by reseting
it to unlock. And when we need to read it, we loop until the counter is
unlocked. This way, the frequency counters are thread-safe without any external
lock. It is important to avoid increasing the size of many structures (global,
proxy, server, stick_table).
2017-10-31 13:58:32 +01:00
..
common MAJOR: threads/map: Make acls/maps thread safe 2017-10-31 13:58:32 +01:00
import MINOR: threads: Add atomic-ops and plock includes in import dir 2017-10-31 11:36:13 +01:00
proto MEDIUM: threads/freq_ctr: Make the frequency counters thread-safe 2017-10-31 13:58:32 +01:00
types MAJOR: threads/map: Make acls/maps thread safe 2017-10-31 13:58:32 +01:00