commit | 8e3f5c6661cdd6194110d724a025f0caa78596d7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Jun 11 08:22:01 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jun 11 10:18:59 2020 +0200 |
tree | 1496411e71ffa65787852a5d04aacc87bce001b6 | |
parent | 920214e8c4bfc55d2daa8469e5c26cac34166c4a [diff] |
CLEANUP: compiler: add a THREAD_ALIGNED macro and use it where appropriate Sometimes we need to align a struct member or a struct's size only when threads are enabled. This is the case on fdtab for example. Instead of using ugly ifdefs in the code itself, let's have a THREAD_ALIGNED() macro performing the alignment only when threads are enabled. For now this was only applied to fd-t.h as it was the only place found.