From: David Gibson Date: Fri, 3 Jun 2016 08:41:59 +0000 (+1000) Subject: altstack: Consolidate thread-local variables X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=2da0271f9700ecb1bd402918e5f7ae7b27c2b142;hp=2da0271f9700ecb1bd402918e5f7ae7b27c2b142;p=ccan altstack: Consolidate thread-local variables altstack uses a number of __thread variables to track internal state. This allows altstack to be thread-safe, although it's still not re-entrant. This patch gathers all these variables into a single per-thread state structure. This makes it easy to see at a glance what the whole of the required state is, and thereby easier to reason about correctness of changes to the implementation. Signed-off-by: David Gibson ---