MINOR: threads: add a portable barrier for threads and non-threads
authorWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:00:20 +0000 (18:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:01:18 +0000 (18:01 +0100)
commitb29dc95a9748732898996540768bbed7a01f9a03
tree88be70726fd9462384e3eb36ac87e493821fdecb
parent2510f702f923ae83f8324bc94703fc77a37601bc
MINOR: threads: add a portable barrier for threads and non-threads

HA_BARRIER() is just a simple memory barrier to prevent the compiler
from reordering our code.
include/common/hathreads.h