commit | e95f2c3ef5489143286e89b288d4950c1d95eb21 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Mon Jul 24 16:30:34 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:32 2017 +0100 |
tree | 327a5cfa748d4b76d84f30be93f0f8d04f023b7c | |
parent | 94b712337d40c6b5bdf54c18025af1caf06ca7ac [diff] |
MEDIUM: thread/vars: Make vars thread-safe A RW lock has been added to the vars structure to protect each list of variables. And a global RW lock is used to protect registered names. When a varibable is fetched, we duplicate sample data because the variable could be modified by another thread.